I'm trying to run xCode 4.2 using an iPhone 3.1.3. My quick question is:
Is there a workaround to make this function work?
UITapGestureRecognizer *gestureSingleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didSingleTap:)]; [gestureSingleTap setNumberOfTapsRequired:1]; [taskScrollView addGestureRecognizer:gestureSingleTap]; [gestureSingleTap release];
The error I'm getting at run-time is this:
-[UITapGestureRecognizer setNumberOfTapsRequired:]: unrecognized selector sent to instance 0x143170
My questions:
- Is there a workaround for this on iOS3.1.3 that is simple and does not require a large amount of code rewrite?
- Can the function be "extended" in some way to redirect to a 3.1.3 equivalent for backwards compatibility?
Many thanks!
Added note: found out some functions are considered "private" and not fully functional before their actual releases. This is probably my core issue. If anyone has a backwards compatibility library, I'd be interested to use that.