Top "Uiscreen" questions

A UIScreen object contains the bounding rectangle of the device’s entire screen.

Detect Retina Display

Does iOS SDK provides an easy way to check if the currentDevice has an high-resolution display (retina) ? The best way …

ios iphone retina-display uiscreen
Is [UIScreen mainScreen].bounds.size becoming orientation-dependent in iOS8?

I ran the following code in both iOS 7 and iOS 8: UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; BOOL landscape = (orientation == UIInterfaceOrientationLandscapeLeft || orientation == …

ios ios8 orientation uiinterfaceorientation uiscreen
How to get device width and height?

In Objective-C we can get device width and height by using following code : CGRect sizeRect = [UIScreen mainScreen].applicationFrame float width = …

ios swift cocoa-touch uiscreen cgsize
How to get screen size using code on iOS?

How to get the iPhone screen size to give calculation?

ios iphone cocoa-touch uiscreen
How to get iOS device screen height and width

Possible Duplicate: IPhone/IPad: How to get screen width programmatically? How to get orientation-dependent height and width of the screen? …

ios objective-c uiscreen
UIScreen MainScreen Bounds returning wrong size

So I created a new project with the latest version of XCode and tried to log the screen size of …

ios iphone objective-c frame uiscreen
How to get iPhone screen size programmatically?

Possible Duplicate: How to get screen size using code? NSLog(@"Top Left View : Width %f height%f",self.topLeftView.frame.…

ios objective-c iphone uiscreen
Adjust the main screen brightness using Swift

I would like to adjust the iPhone's main screen brightness in code using Swift. I know in Objective-C it can …

ios swift uiscreen
Capturing full screenshot with status bar in iOS programmatically

I am using this code to capture a screenshot and to save it to the photo album. -(void)TakeScreenshotAndSaveToPhotoAlbum { …

objective-c ios uiwindow uiscreen
What is the difference between -nativeScale and -scale on UIScreen in iOS8+?

In sample logs posted in this question, the results are identical. Does anyone know if there is meant to be …

ios ios8 uiscreen