- Upgrade Pod
- Add osVersion
This commit is contained in:
1 parent
a05a641285
commit
9276be2b25
38 files changed
+7118
-2073
No files matched your search
@@ -116,4 +116,9 @@ typedef NS_ENUM(NSUInteger, UIDeviceModelInches) {
|
||||
*/
|
||||
- (UIDeviceModelInches) deviceInches;
|
||||
|
||||
/**
|
||||
Returns the device OS Version in CGFloat
|
||||
*/
|
||||
- (CGFloat) osVersion;
|
||||
|
||||
@end
|
||||
@@ -391,5 +391,9 @@
|
||||
return UIDeviceModelInchesUnKnown;
|
||||
}
|
||||
|
||||
- (CGFloat) osVersion {
|
||||
return (CGFloat)[[[UIDevice currentDevice] systemVersion] floatValue];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user