Permalink
Browse files

Use availability macro to ensure clean build against 5.0 SDK

  • Loading branch information...
1 parent 6b2a85d commit 0a5c584fc7173ddc5e33c0fc6d0ee36accd1bac7 @blakewatters blakewatters committed Jul 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Additions/UITouch-KIFAdditions.m
@@ -13,7 +13,10 @@
MAKE_CATEGORIES_LOADABLE(UITouch_KIFAdditions)
+
@interface UITouch () {
+#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000
+ // ivars declarations removed in 6.0
NSTimeInterval _timestamp;
UITouchPhase _phase;
UITouchPhase _savedPhase;
@@ -38,6 +41,7 @@ @interface UITouch () {
unsigned int _sentTouchesEnded:1;
unsigned int _abandonForwardingRecord:1;
} _touchFlags;
+#endif
}
@end

0 comments on commit 0a5c584

Please sign in to comment.