You could check the scale of the screen.
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2){
//iPhone 4
}
More Related Contents:
- Cant seem to get past this line of code [duplicate]
- How to force NSLocalizedString to use a specific language
- Create tap-able “links” in the NSAttributedString of a UILabel?
- How to input currency format on a text field (from right to left) using Swift?
- What are different types of notifications in iOS and how to configure them correctly?
- How to use Facebook iOS SDK on iOS 10
- Exit application in iOS 4.0
- How to add a touch event to a UIView?
- NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll
- Cut transparent hole in UIView
- iOS 7 Sprite Kit freeing up memory
- Does H.264 encoded video with BT.709 matrix include any gamma adjustment?
- Steps to upload an iPhone application to the AppStore
- Application crashed while importing songs from Ipod library in iPhone for iOs 5.0
- iOS 10 error [access] when using UIImagePickerController
- core audio offline rendering GenericOutput
- How do you loop AVPlayer in Swift?
- Handling Push Notifications when App is Terminated
- UIViewContentModeScaleAspectFill not clipping
- UICollectionView header dynamic height using Auto Layout
- Xcode 6 iPhone Simulator Application Support location
- Swift doesn’t convert Objective-C NSError** to throws
- Take screenshots in the iOS simulator
- performSegueWithIdentifier very slow when segue is modal
- Loading ViewController from xib file
- Set UITableView’s height to the height of its content with Auto Layout
- AutoLayout, Unable to simultaneously satisfy constraints
- Ambiguous use of subscript xcode 7.1
- SwiftUI: Error in dragging logic or is this a bug?
- Region Monitoring Glitch on iOS 7 – Multiple Notifications at the same time