Now I need to redesign an app(iPad version), it can run on iPad successfully .The targeted device family is iPad, and I want it run on iPhone.So I already changed the targeted family to iPhone, but it cannot run. It is because the size of the iPad and iPhone is different, so how can i make it successful to run on iPhone? Do I need to create a new xib for iPhone?How to achieve it?
Yes, you need to create new XIB's that are structured for the smaller interface. You will also need to determine in code what view you are loading for which device.
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
/* do something for the iPad */
else
/* do something for the iPhone */
Yes, you will need to create new /xibs for iPhone, an iPad App won't work on an iPhone like that. Not only the sizes are diferent, the ratio width/height is different too
If you really worked at it, you could use the xib file for both the iPad and iPhone. But first you have to make sure that your existing xib files don't have a "~ipad" in them, because if they do, they will only be loaded on the iPad and not the iPhone.
You may also want to make your app Universal instead of two separate iPhone and iPad apps.
And if you use a SplitViewController, you will have to add separate code for the iPhone. Same thing with UIPopovers.
Absolutely you have to redesign all UI corresponding to device screen size. You can create new xib or Storyboard separately for iPhone, So that you can achieve it.
You may use UIPopoverController in iPad but it won't work in iPhone, you have to present that viewcontroller in iPhone. From that you can manage that.,
its so simple you have to change the xib file and other code will be same
You can create xib from
New File -> user interface => view
I'm using the Tapku library to show a calendar of events, it's showing correctly on my device (iPhone 5 with iOS 6.1.3), but on some other devices or the simulator, the calendar is black (check the screenshots)
The calendar is an object of TKCalendarMonthTableViewController
Any idea why it's not showing correctly everywhere?
Thanks
I found it, the TapkuLibrary.bundle file was missing in the xcode project, just added it and it works fine.
I'm trying to figure out why the last cell in my app's tableView isn't touchable while running on the iPhone 5, as it works fine on the previous iPhones and also iPads. I migrated this app and found this bug while testing on the device and simulator. No code change was necessary to migrate the app. Screenshot below:
If you can help me at all, I'd greatly appreciate it!
Link to screenshot: http://i.stack.imgur.com/S98BS.jpg
Maybe you use xib for iPhone 4 and it's touch content Is ending above last cell? If you use storyboard or xib you need to create new with 1136x640 resolution.
I have an iPhone app I developed using cocos2d. I have the correct version which supports iPad. Now, how do I get it to change the screen resolution or to recognize that it is an iPad app and not an iPhone app?
You can use the UI_USER_INTERFACE_IDIOM() to figure out in what kind of device your app is running. Anyway, you should always try to layout your stuff relative to the screen size (or the root view controller's view size) so that it will adapt itself to any resolution.
You can make your app use the entire iPad screen and not run in the simulator simply by changing the target device from iPhone to iPhone/iPad in Xcode. If you want your app to show different UI and run different code on the iPad, you can check for the device by using one of several ways to detect an iPad in Objective-C.
I want to display banner at the top of the view i know that for that iAd is available but it works on 4.o onwards and i want to display it from sdk 3.0 onwards so can any one give me the links or video which give me the proper steps to create it.
thanx & regards
Priyanka..
Minimum requirement to run iAd is iOS4 or higher. Many iOS users are switching to iOS4 so you can go ahead and cater to that. Cheers.