Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8582189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:13:53+00:00 2026-06-11T21:13:53+00:00

Just upgraded xCode to 4.5. iOS 5 is still my deployment target, but Base

  • 0

Just upgraded xCode to 4.5. iOS 5 is still my deployment target, but Base SDK is now 6.0.

Application now crashes where previously it did not. The project uses ARC.

The offending line is a property call on a UITableView… asking for the panGestureRecognizer (line 3 below).

-(void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];    
        UIPanGestureRecognizer* pgr = [imageTableView panGestureRecognizer];
        [pgr setMinimumNumberOfTouches:2];
        [pgr setMaximumNumberOfTouches:2];
}

Produces the following error message:

-[UIScrollViewPanGestureRecognizer retain]: message sent to deallocated instance 0x1ea38f70

How is this possible? Zombie Analysis says that the gestureRecognizer has been released already?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:13:55+00:00Added an answer on June 11, 2026 at 9:13 pm

    Turns out this was an ARC issue… two different solutions for those interested.

    @autoreleasepool {
        UIPanGestureRecognizer* pgr = [imageTableView panGestureRecognizer];
        [pgr setMinimumNumberOfTouches:2];
        [pgr setMaximumNumberOfTouches:2];    
    }
    

    Or

    [imageTableView.panGestureRecognizer setMinimumNumberOfTouches:2];
    [imageTableView.panGestureRecognizer setMaximumNumberOfTouches:2];
    

    Lesson learned, if it can’t be possible…. try ARC as the culprit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just upgraded to Xcode 4.2 and iOS SDK 5 earlier today. But everything
I just upgraded Xcode, but now I don't have any 3.x SDK for Simulator.
I just upgraded to XCode 3.2.5 and iOS SDK 4.2, and I upgraded my
I just upgraded my xcode to 4.5 but now when I try to install
What can I do?? I just upgraded my iPhone OS but now my Xcode
Just upgraded my xcode to the latest SDK which has the iOS 4.1 SDK.
I have build the app using Xcode 4.2.1 and iOS 5.0 SDK target, now
I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with
I just upgraded to the latest version of the SDK (version 19) and now
I just upgraded XCode to 3.2.6 but Organizer said that XCode can not find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.