public class UIScreen extends NSObject
Constructor and Description |
---|
UIScreen() |
Modifier and Type | Method and Description |
---|---|
CGRect |
applicationFrame()
Deprecated.
|
CGRect |
bounds()
Returns the rectangle that encloses the screen.
|
static UIScreen |
mainScreen()
Return a UIScreen object that represents the screen of the device.
|
double |
scale()
Return the natural scale factor for this screen.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static UIScreen mainScreen()
public CGRect bounds()
@Deprecated public CGRect applicationFrame()
public double scale()
Copyright © 2020. All rights reserved.