iOS [redacted] UIKit check

This commit is contained in:
Roman Efimov
2013-08-08 09:27:28 -05:00
parent 2667718c4b
commit 00655ed5ff
3 changed files with 11 additions and 1 deletions

View File

@@ -36,7 +36,7 @@
[self sizeToFit];
if (REDeviceSystemMajorVersion() < 7.0) {
if (!REDeviceIsUIKIT7()) {
self.translucent = YES;
self.barStyle = UIBarStyleBlackTranslucent;
}

View File

@@ -51,6 +51,7 @@
Returns device OS major version.
*/
NSUInteger REDeviceSystemMajorVersion();
BOOL REDeviceIsUIKIT7();
/**
`RETableViewManager` allows to manage the content of any `UITableView` with ease, both forms and lists. `RETableViewManager` is built on top of reusable cells technique and provides

View File

@@ -34,6 +34,15 @@ NSUInteger REDeviceSystemMajorVersion() {
return _deviceSystemMajorVersion;
}
BOOL REDeviceIsUIKIT7() {
#ifdef __IPHONE_7_0
if (REDeviceSystemMajorVersion() >= 7.0) {
return YES;
}
#endif
return NO;
}
@implementation RETableViewManager
- (id)init