Skip to content

Commit

Permalink
Conditionally disable access to private UITouch ivars explicitly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kemenaran committed Jul 27, 2012
1 parent b16d67c commit f83cfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Three20UI/Headers/UIViewAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
/**
* WARNING: This depends on undocumented APIs and may be fragile. For testing only.
*/
#ifdef DEBUG
#ifdef DEBUG_TOUCHES
- (void)simulateTapAtPoint:(CGPoint)location;
#endif

Expand Down
5 changes: 3 additions & 2 deletions src/Three20UI/Sources/UIViewAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


// Remove GSEvent and UITouchAdditions from Release builds
#ifdef DEBUG
#ifdef DEBUG_TOUCHES

///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -423,7 +423,8 @@ - (void)removeAllSubviews {
}


#ifdef DEBUG
#ifdef DEBUG_TOUCHES


///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)simulateTapAtPoint:(CGPoint)location {
Expand Down

0 comments on commit f83cfd8

Please sign in to comment.