A simple class that help you identify device's screen when coding, with some useful extensions inside.
All method are implemented as class methods, It may seem easier to use.
Now with CocoaPods compatible
-
Simply copy the class file into your project.
-
import the header file.
-
add this line into your Podfile:
pod 'iOSDeviceScreenAdapter', '~> 1.0.2'
-
pod install
-
import the framework with
import <iOSDeviceScreenAdapter/DeviceScreenAdapter>
- Initialize the class when your app is start.
[DeviceScreenAdaptor sharedAdaptor]
- To use adaptedValue method, rewirte the getter of property developStrandardScreenType to your current develop device screen type.
(Recommanded) Alternative: If you are using version 1.0.3 just simply call the method
- (void)setDeveloperScreenType:(DeviceScreenType)type
to set your develop device in Appdelegate.m

