So I've upgraded my iphone app to a universal app and am trying to add a uisplitviewcontroller. In MainWindow-ipad.xib, when I try to drag an object to the window, uisplitviewcontroller isn't an option. Furthermore, the screen size is the iphone's dimensions, not the ipad's. How do I get this to work with the universal app?
Thanks.
Valid XHTML http://img687.imageshack.us/img687/504/screenshot20100809at436.png
So I found out how to do it. You have to convert it to an iPad nib.
Related
I am making separate storyboards for my app on iPhone and iPad. All of the elements on both storyboards are the same, but I needed to change a few things like font size, constraints, etc.
I did Command A (select all) and Command C to copy all of the iPhone view controllers. Then I did Command V to paste all the VCs into the iPad storyboard. Most of the VCs in the iPad storyboard display with the correct iPad format, but a few of the VCs will still display with the iPhone format even when I'm using an iPad...
I made sure that the iPad storyboard was being used for the iPad device type. Any help would be greatly appreciated
I wanna convert storyboard from iPhone to iPad. So i tried this answer.
Converting Storyboard from iPhone to iPad
When i opened the new iPad Storyboard, it just shows the error as below:
So how can i resolve this?? Or Give me suggestions to convert to iPad Storyboard. I'm using Xcode 6.3.1
Try this:
Make sure your projects setting is in Universal
Add key "Main storyboard file base name (iPad)" in your plist file with MainStoryboard_iPad as the value
I am trying to upgrade my existing iPhone app project to an Universal app,
I have implemented following steps,
Step 1: Project Navigator - target - Summary - devices - Universal (From iPhone to Universal)
Step 2: Created TabBar with NavigationBar Flow in Storyboard,
When i run my project in iPhone it works properly but when i run in iPad it shows only TabBar with NavigationBar.
Now my problem is how to create new .xib files for iPad ? Xocde doesn't created automatically when i selected my device from iPhone to Universal.
or
How to map my iPhone .xib files with iPad.
Do i need to create new Outlet and action for all buttons which are there in my iPhone .xib?
Thanks in advance.
Create a new xib for all your view controllers ,name the view controllers with "~ipad " as a suffix(ex. FirstViewController~ipad.xib)
xcode will automatically use the xib when the application run in ipad. Link your newly created xib with appropriate classes through identity inspector in xib.
Note : After creating a new xib, add all the controls as added in existing view controller and link newly added controls with file owner.
add all the controls and link with file owner.
I have an iPhone application available in appstore.
Now i would like to develop Universal version of the same app.
The iPad version of the current application will be the same. Just screens will be adapted for iPad size. The behaviour won't be changed due to device type.
My question is below:
In iPhone version, there is a page which displays hotel list.
The controller class is:
HotelListViewController.m
HotelListViewController.h
the xib is: HotelListViewController.xib
Now which is best practice for making same page of iPad:
Option 1:
Just creating HotelListViewControlleriPad.xib
and using same HotelListViewController.m and .h
Option 2:
Creating HotelListViewControlleriPad.xib
creating HotelListViewControlleriPad.m and h
thanks.
You need to go by option 1, as only view differs so you need to have different xib for iPhone and iPad.
If in your controller, there is certain view related stuff then you can handle that stuff conditionally.
You can check this thread also for some interested related discussion - How to develop an universal app for iPhone + iPad without xib files?
Either go for option 1 or use the same xib and view controller class as in iPhone but make the view controller a child view controller of the full screen view controller on iPad (for example using split view controller or a custom container view controller).
I'm developping an iPhone/iPad application and I want to make specific views for both iPad and iPhone. I was wondering what was the best way to select the handle the view selection.
Should I create a MainViewController with a custom push method which handle the selection (iPad or iPhone version of the view) ?
What is the best way to do that ?
If your iPhone nib is named, MyApp.xib, name the iPad nib to "MyApp~ipad.xib" (mind the lowercase "P"). The latter one will automatically be loaded for iPad.
If you want to create specific view for iPhone and iPad,when you create a new project -> Select Device Family as "Universal" .2 xib files will be created. One for iPhone and another for iPad respectively which you can use to design iPhone and iPad interface.