Permalink
Browse files

Added support for detecting iOS5 and iOS4.3 to TTGlobalUICommon

  • Loading branch information...
1 parent 9c36bed commit f7d4041434823da18a6d5cd29d536d32b42c4927 samyzee committed Oct 20, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Three20UICommon/Sources/TTGlobalUICommon.m
@@ -54,6 +54,12 @@ BOOL TTOSVersionIsAtLeast(float version) {
// Floating-point comparison is pretty bad, so let's cut it some slack with an epsilon.
static const CGFloat kEpsilon = 0.0000001f;
+#ifdef __IPHONE_5_0
+ return 5.0 - version >= -kEpsilon;
+#endif
+#ifdef __IPHONE_4_3
+ return 4.3 - version >= -kEpsilon;
+#endif
#ifdef __IPHONE_4_2
return 4.2 - version >= -kEpsilon;
#endif

0 comments on commit f7d4041

Please sign in to comment.