mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-18 15:39:08 +08:00
iOS [redacted] UIKit check
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
[self sizeToFit];
|
||||
|
||||
if (REDeviceSystemMajorVersion() < 7.0) {
|
||||
if (!REDeviceIsUIKIT7()) {
|
||||
self.translucent = YES;
|
||||
self.barStyle = UIBarStyleBlackTranslucent;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user