Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Conditionally disable access to private UITouch ivars (fix broken build with iOS 6 SDK) #809

Merged
merged 1 commit into from
Jul 27, 2012
Merged

Conditionally disable access to private UITouch ivars (fix broken build with iOS 6 SDK) #809

merged 1 commit into from
Jul 27, 2012

Conversation

kemenaran
Copy link
Contributor

UITouch ivars have been removed of the iOS 6 SDK headers: private API access in UIViewAdditions breaks the build on iOS 6.

The flag to activate the UITouch extensions is now more strict, so that it is not enabled by default in debug builds, and require an explicit setting.

UITouch ivars have been removed of the iOS 6 SDK headers: private API access in UIViewAdditions breaks the build on iOS 6.

The flag to activate the UITouch extensions is now more strict, so that it is not enabled by default in debug builds, and require an explicit setting.
@diederich
Copy link
Contributor

Clean and straightforward. Thanks!

diederich added a commit that referenced this pull request Jul 27, 2012
Conditionally disable access to private UITouch ivars (fix broken build with iOS 6 SDK)
@diederich diederich merged commit dc2de88 into facebookarchive:development Jul 27, 2012
@arthurva
Copy link

arthurva commented Feb 5, 2013

Just add the following code to support ios6 sdk:

#ifdef __IPHONE_6_0
@interface UITouch () {
NSTimeInterval _timestamp;
UITouchPhase _phase;
UITouchPhase _savedPhase;
NSUInteger _tapCount;

UIWindow *_window;
UIView *_view;
UIView *_gestureView;
UIView *_warpedIntoView;
NSMutableArray *_gestureRecognizers;
NSMutableArray *_forwardingRecord;

CGPoint _locationInWindow;
CGPoint _previousLocationInWindow;
UInt8 _pathIndex;
UInt8 _pathIdentity;
float _pathMajorRadius;
struct {
    unsigned int _firstTouchForView:1;
    unsigned int _isTap:1;
    unsigned int _isDelayed:1;
    unsigned int _sentTouchesEnded:1;
    unsigned int _abandonForwardingRecord:1;
} _touchFlags;

}
@EnD
#endif

@fredstyles
Copy link

Thanks arthurva.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants