Prevent an iPhone app from running on iPad [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Prevent iPhone app to run on iPad
Is it possible to prevent my iPhone app from running on an iPad, not even the X2 version.
Thanks

Here is Article about how Prevent iPhone app to run on iPad

Use UIDevice's model method to get device name in string.
NSString* deviceType= [[UIDevice currentDevice] model];
Possible examples of model strings are #”iPhone” and #”iPod touch”.
So you could get the model name in the starting of the application and could show the appropriate popup for showing like "Currently No supporting the iPad" and exit from the application.

In the plist settings, add Application requires iPhone environment and set the boolean to YES

Related

Xcode: Release app update for iPhone only? [duplicate]

This question already has an answer here:
Change targeted device family on existing iPhone/iPad app
(1 answer)
Closed 9 years ago.
I have made an app for both iPhone and iPad in the past, but the latest update it only intended for iPhone.
I switched Target Device Family to iPhone Only and archived and validated, but I get the error:
"This bundle does not support one or more of the devices supported by the previous app version"
Is there any way around this?
Your app is original a universal app, so all subsequent updates must also be universal.
There is nothing you can do in order to separate the update between iPhone and iPad - your app is one app.
The simple fact is that iPad users will receive an update, and nothing will change, while iPhone users will notice the differences.
This isn't an uncommon thing - it happens all the time. The answer is to not worry about it. Fix whatever you need to fix, submit the updated the app and be on your merry way.

Converting iPhone app to Universal app [duplicate]

This question already has an answer here:
How to create Universal apps in iPhone/iPad?
(1 answer)
Closed 9 years ago.
As my iPhone app is working perfectly on iPhone with full screen but when i try to run the app in iPad it shows with the iphone screen. Is it possible to run the app in full screen without jailbreaking the iPad or using the double pixel method ?
Well, you need to actually create one version for iPad, with the corresponding XIB's and classes and other functionalities you might want to add. Remember that an iPad version is more than justa bigger version of the iPhone one...
This Question ask in earlier But read this Official Documentation This might be help flu for you..other option is Search in GOOGLE is best way for getting more ways for create Universal App.
Also This site is related to Your Question.

Is it possible to get to installed app list on iPhone device [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
get list of installed applications on iphone objective-c
Is it possible to get to installed app list on iPhone device.. if possible
how can i get applications list that are installed in iPhone
thanks,
No you can not do this with public api. You could create a list of url schemes and test if the app can open them but some apps does not have url schemes.
No it is not. Because it is handled by apple's private api's. Well this can be tried on Jailbroken devices anyways.
Anyways, you can check if a specific application is installed on device using appdelegate's canopenurl method. That will take the URL of the method & if it is there in app you can open that application via your application.
Hope it helps.

iOS upgrading issue [duplicate]

This question already exists:
Closed 10 years ago.
Possible Duplicate:
App Crashing after iOS upgrade
I upgraded my device from iOS 5.1.0 to iOS 5.1.1.
After up gradation my app were crashing on clicking the app icon. What can be the possible reasons for this?
I am using the following storage in my app.
- Using NSUserDefaults to read value from at app launch.
- Using keychain to store user credentials.
- Does User defaults and Keychain gets affected while iOS up gradation.
This is most likely happening because Apple changed the internal structure of the views. I have seen this when you loop through the subview and Apple made any significant changes to the view all that code is not going to work. Something similar is happening in your case.
This is what I would do, run application on your phone from xcode and keep breakpoints on, it should help you to narrow down the problem.

Two iPhone Simulators at the same time? [duplicate]

This question already has answers here:
Is there a way to simulate multiple iphones using xcode/iphone sim?
(10 answers)
Closed 9 years ago.
Is it possible to run the iphone app in two iphone simulator at the same time?
If Yes Let me know?Please.
Yes there is. Download the script here
and then run it before you open xcode in each users account. It will open the simulator in such a way that for every user you can run a simulator. Also, running multiple instances of xcode and debugging on multiple devices under the same user seems to work fine for me at the moment (XCode 4, ios 4.3.3) however I still havent managed to find a way to open more than one simulator for the same user though.