Permalink
Browse files

Conditionally disable access to private UITouch ivars explicitly

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...
1 parent 8807ecf commit be70e1ff3965c0ff4f7598bf5213349629a27540 @kemenaran kemenaran committed with wharris Jul 27, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/Three20UI/Headers/UIViewAdditions.h
  2. +3 −2 src/Three20UI/Sources/UIViewAdditions.m
@@ -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
@@ -27,7 +27,7 @@
// Remove GSEvent and UITouchAdditions from Release builds
-#ifdef DEBUG
+#ifdef DEBUG_TOUCHES
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -421,7 +421,8 @@ - (void)removeAllSubviews {
}
-#ifdef DEBUG
+#ifdef DEBUG_TOUCHES
+
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)simulateTapAtPoint:(CGPoint)location {

0 comments on commit be70e1f

Please sign in to comment.