Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sebyddd committed Aug 19, 2015
1 parent 6f7f092 commit 5689723
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SDVersion supports both iOS and Mac OS. Browse through the implementation of eac
else if ([SDVersion deviceVersion] == iPhone6Plus)
NSLog(@"iPhone 6 Plus? Bigger is better!");
else if ([SDVersion deviceVersion] == iPadAir2)
NSLog(@"You own an iPad Air 2 🌀!");
NSLog(@"You own an iPad Air 2 🌀!");

// Check for device screen size
if ([SDVersion deviceSize] == iPhone4inch)
Expand Down Expand Up @@ -79,7 +79,7 @@ CocoaPods is a dependency manager for Objective-C, which automates and simplifie
+ (NSString*)deviceName;
```
### Targetable models
iPhone4
iPhone4
iPhone4S
iPhone5
iPhone5C
Expand Down Expand Up @@ -108,13 +108,13 @@ CocoaPods is a dependency manager for Objective-C, which automates and simplifie
### Available iOS Version Finder methods
iOSVersionEqualTo(@"v") //E.g: iOSVersionEqualTo(@"8.4.1")
iOSVersionGreaterThan(@"v")
iOSVersionGreaterThanOrEqualTo(@"v")
iOSVersionLessThan(@"v")
iOSVersionLessThanOrEqualTo(@"v")
iOSVersionGreaterThanOrEqualTo(@"v")
iOSVersionLessThan(@"v")
iOSVersionLessThanOrEqualTo(@"v")
### Helpers
```objective-c
NSLog(@"%@", stringFromDeviceVersion([SDVersion deviceVersion]));
NSLog(@"%@", stringFromDeviceVersion([SDVersion deviceVersion]));
/* e.g: Outputs 'iPad Air 2' */
NSLog(@"%@", stringFromDeviceSize([SDVersion deviceSize]));
Expand Down Expand Up @@ -159,40 +159,40 @@ CocoaPods is a dependency manager for Objective-C, which automates and simplifie
+ (DeviceScreenResolution)deviceScreenResolution;
```
### Targetable models
DeviceVersionIMac
DeviceVersionMacMini
DeviceVersionMacPro
DeviceVersionMacBook
DeviceVersionMacBookAir
DeviceVersionMacBookPro
DeviceVersionXserve
DeviceVersionIMac
DeviceVersionMacMini
DeviceVersionMacPro
DeviceVersionMacBook
DeviceVersionMacBookAir
DeviceVersionMacBookPro
DeviceVersionXserve

### Targetable screen sizes
Mac27Inch
Mac24Inch
Mac21Dot5Inch
Mac20Inch
Mac17Inch
Mac15Inch
Mac13Inch
Mac12Inch
Mac11Inch
Mac24Inch
Mac21Dot5Inch
Mac20Inch
Mac17Inch
Mac15Inch
Mac13Inch
Mac12Inch
Mac11Inch

### Targetable screen resolutions
DeviceScreenRetina,
DeviceScreenNoRetina
DeviceScreenNoRetina

### Available OSX Version Finder methods
OSXVersionEqualTo(@"v") //E.g: OSXVersionEqualTo(@"11") - OSX 10.11
OSXVersionGreaterThan(@"v")
OSXVersionGreaterThanOrEqualTo(@"v")
OSXVersionLessThan(@"v")
OSXVersionLessThanOrEqualTo(@"v")
/* 'v' must be the minor OS Version. e.g: OSX 10.9 - 'v' is 9 */
OSXVersionGreaterThanOrEqualTo(@"v")
OSXVersionLessThan(@"v")
OSXVersionLessThanOrEqualTo(@"v")
/* 'v' must be the minor OS Version. e.g: OSX 10.9 - 'v' is 9 */

### Helpers
```objective-c
NSLog(@"%@", stringFromDeviceSize([SDVersion deviceSize]));
NSLog(@"%@", stringFromDeviceSize([SDVersion deviceSize]));
/* e.g: Outputs '15 inch' */

NSLog(@"%@", stringFromDeviceResolution([SDVersion deviceScreenResolution]))
Expand All @@ -204,4 +204,4 @@ CocoaPods is a dependency manager for Objective-C, which automates and simplifie
- Yasir Turk (iOS Version Finder, StackOverflow)

## License
Usage is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.
Usage is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.

0 comments on commit 5689723

Please sign in to comment.