uidevice Questions
9
Solved
I need to detect when the device is in portrait orientation so that I can fire off a special animation. But I do not want my view to autorotate.
How do I override a view autorotating when the devi...
Overmeasure asked 3/2, 2012 at 0:35
13
I have a question on how to detect the device orientation on iOS. I don't need to receive change notifications, just the current orientation itself. This seems to be a rather simple question, but I...
Walter asked 5/4, 2011 at 23:12
1
I read a lot of documentations and topics about playing keyboard clicks, but I can't get it to work in my app...
I designed a custom keyboard (as a UIView subview), which adopts the UIInputViewAud...
5
Outside of asking the user to input their name, is there any way to get it off the device?
I tried this library, which attempts to extract the name from [UIDevice currentDevice] name], but that do...
Kyle asked 3/6, 2013 at 13:14
2
Solved
I followed the MD file step by step. But there is still an error in the compilation. What can I do?
In the FaceppClient.m file :
if ([[[UIDevice currentDevice] systemVersion] compare: @"5.0" opti...
16
Solved
It seems that when my app loads, it does not know its current orientation:
UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
if (orientation == UIDeviceOrientationPortra...
Alinaaline asked 4/5, 2011 at 18:16
1
Solved
I am trying to check if device's charging port is working fine.
There are two scenarios -
a. when the charging cable is already plugged in.
b. when the charging cable is plugged in after sometim...
Downbow asked 7/9, 2017 at 12:31
31
Solved
It has just come to light that the UIDevice uniqueIdentifier property is deprecated in iOS 5 and unavailable in iOS 7 and above. No alternative method or property appears to be available or forthco...
Apostrophe asked 9/8, 2011 at 8:27
2
On Linux, I can access a hard drive as /dev/sdX. This ignores any partition tables, file systems, etc, and just accesses the drive block by block. What is the equivalent in Cygwin? I already search...
Cyaneous asked 4/1, 2016 at 4:24
8
Solved
I have a toggle in my app that's "download on WiFi only". However, that toggle is useless for iPod touch or WiFi-iPads.
Is there a way to know if the device has cellular data capabilities in code...
Rashida asked 18/8, 2011 at 0:52
5
I want to intercept the proximity sensor without turning off the display.
I know by the documentation that I have two Bool variables:
proximityMonitoringEnabled
proximityState
and this code
[U...
Ablation asked 26/11, 2014 at 11:20
4
Solved
I created a function which checks whether the iPhone is charging or not using UIDevice. Where should I call the function so that it monitors the status throughout the app session? The Function is c...
5
Solved
I'm wondering is it possible to receive information about battery like: capacity (mA), voltage (V), cycle count within iOS?
I know UIDevice class, but battery level is not what I'm looking for.
1
Solved
I try to use following code to get my device information:
UIDevice.currentDevice().systemVersion
But I got an error as bellow shown:
Use of unresolved identifier UIDevice
3
Solved
a noob question here.
i detect the orientation with:
UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
all is fine and dandy and I reposition my text fields and labels...
Postilion asked 12/12, 2010 at 18:36
2
Always [myDevice batteryLevel] returning -1 and [myDevice batterystate]returning 0(entering into Default case).
How can i get the correct values?.Can anyone please help me to solve this?.Below is...
Amethyst asked 21/5, 2015 at 12:10
3
Solved
is there way to get launch image as UIImage for current device?
or UIImageView with an image
Preinstruct asked 18/8, 2013 at 11:15
6
Solved
Is there any way or hack to detect on what color (black / white) iPhone, iPad or iPod touch the iOS is installed?
I want to load corresponding UI skins in case of Black or White devices.
Deary asked 11/12, 2011 at 10:8
6
Solved
I have an application that needs to get the list of installed (other, maybe third party) applications on the device. How can it be done? Or can it be done at all?
Ounce asked 27/12, 2011 at 13:51
5
As per the title.
Calling [[UIDevice currentDevice] BeginGeneratingDeviceOrientationNotifications] has no effect.
DidRotateToInterfaceOrientation etc events are working fine, but I need to be abl...
Liking asked 17/3, 2010 at 10:8
4
Solved
I have using the following code for get identifier
deviceName = [[UIDevice currentDevice]uniqueIdentifier];
But i got the warning uniqueIdentifier is deprecated in ios5.
so how to get the iden...
3
Solved
So, since Apple is now rejecting apps that access UDID, on our company's current project, we need to eliminate all APIs that make a call to this property:
[[UIDevice currentDevice] uniqueIdentifie...
Wilmer asked 25/3, 2013 at 20:0
9
Hi I have an app and I have two *.pngs for default splash screen:
Default-Landscape.png
Default-Portrait.png
What I want is to animate this default splash screen away when my app is loaded and re...
Wallacewallach asked 13/8, 2010 at 14:5
5
Solved
Is there an API for checking at runtime whether you are running on an iPhone or an iPad?
One way I can think of would be to use:
[[UIDevice currentDevice] model];
And detect the existence...
Ellata asked 21/5, 2010 at 18:0
3
Solved
I'm searching for a way to detect the device my app is running on. I am not interested in software version. I searched many questions but none of them (surprisingly) satisfy my needs for following ...
Homogeneity asked 1/9, 2012 at 2:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.