Top "Uidevice" questions

The UIDevice class provides a singleton instance representing the current device.

UIDevice uniqueIdentifier deprecated - What to do now?

It has just come to light that the UIDevice uniqueIdentifier property is deprecated in iOS 5 and unavailable in iOS 7 and …

ios deprecated uidevice
How Do I detect the orientation of the device on iOS?

I have a question on how to detect the device orientation on iOS. I don't need to receive change notifications, …

ios objective-c orientation uidevice
Detecting iOS UIDevice orientation

I need to detect when the device is in portrait orientation so that I can fire off a special animation. …

ios objective-c swift orientation uidevice
iOS: Device orientation on load

It seems that when my app loads, it does not know its current orientation: UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation]; if (…

iphone ios uiinterfaceorientation uidevice
API to determine whether running on iPhone or iPad

Is there an API for checking at runtime whether you are running on an iPhone or an iPad? One way …

iphone objective-c cocoa-touch ipad uidevice
Any way to get the name of iPhone user?

Outside of asking the user to input their name, is there any way to get it off the device? I …

iphone ios objective-c uidevice
How to use the identifierForVendor in ios5.?

I have using the following code for get identifier deviceName = [[UIDevice currentDevice]uniqueIdentifier]; But i got the warning uniqueIdentifier is …

iphone ios5 ios6 uidevice
Know if iOS device has cellular data capabilities

I have a toggle in my app that's "download on WiFi only". However, that toggle is useless for iPod touch …

iphone objective-c ios uidevice cellular-network
Detecting Color of iPhone/iPad/iPod touch?

Is there any way or hack to detect on what color (black / white) iPhone, iPad or iPod touch the iOS …

ios iphone objective-c uidevice
get list of installed applications on iphone objective-c

I have an application that needs to get the list of installed (other, maybe third party) applications on the device. …

iphone objective-c ios uidevice