Permalink
Browse files

Add new macro to detect iOS7.

  • Loading branch information...
1 parent 3ba69ff commit 07c874a9c35c14c0eecae6028a42ad0cb8deed33 @pk committed Nov 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/PKMacros.h
View
@@ -15,3 +15,5 @@
#define PK_IS_IPHONE ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone )
#define PK_IS_IPHONE_5 ( PK_IS_IPHONE && PK_IS_WIDESCREEN )
+#define PK_IS_IOS7 ( floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 )
+

0 comments on commit 07c874a

Please sign in to comment.