XCode 4: Create iPad Version using autosizing masks - objective-c

I've just upgraded to XCode 4 Gold and I can't find a way to automatically create the iPad view from an iPhone view (or viceversa).
To be clear, the feature I am looking is the same as in the Interface Builder of XCode 3, there is an option "Create iPhone/iPod touch version using autosizing masks" when you're working on an iPad View, and "Create iPad version using autosizing masks" on iPhone/iPod Touch.
If anybody know if this is possible...
Thanks in advance.

There is still a way to convert xibs to iPad. It is just hard to find:
Select the project in the navigator, then right-click the target and make sure it is set to iPhone -- if set to Universal this process will not work. (You can set it back to universal afterwards)
Right click the target and then select Duplicate.
Choose to Duplicate and Transition to iPad. A group called "Resources-iPad" will be added to your project and will contain the iPad-converted xibs.

Related

Upgrade project for iPhone X and iOS 11

I'm working on very old project which is written in objective-C and it's all views and controllers are written programatically. (There are not even XIBs, except some cells)
I've already open project in latest Xcode 9.3 and resolve all error and dependencies and compiled it successfully.
But now I want to upgrade the whole project to give support for iOS 11 and iPhone X layout, and I also want to add storyboards and remove all programatically controllers. It's also compatible for iPad and iPhone both.
Can anyone suggest me how to start it and what to keep in mind?
It's huge project so I'm bit confuse either would I make it or not. (I don't wanna introduce swift at the moment, first I'll update it for iPhone X layout and storyboards, then I'll think about swift too)
First of all start with creating UI on storyboard with autolayout.
Remove the resizing views conditions from the code.
Use size class to support both iPhone and iPad.
so basically first 3 steps will solve 70% of your issues.
My suggestion is don't move to the swift before doing all this.

IOS - Migrating storyboard to Xcode 8 resize

I used to have a story board in Xcode 7.3, today I started migrating to Xcode 8 by hand because I want to clean some stuff in this version.
The problem that I faced is that in the storyboard when I change the device type the content of the view controller scene is not adjusted to the phone.
This is an example:
The above is the same size as the storyboard in Xcode 7.3, actually Copy & Paste the View Controller Scene.
When I change the size to the next device I get this:
Now I have a space in the right. I'm using Auto Layout.
So I don't know what changed in this version or what do I need to do in order to make my storyboard fits on all iPhones sizes.
What I would need to see is if I change to a bigger phone then everything will auto fit on the new screen. Thats the way was working with Xcode 7.3.
Any advice?

Storyboard for iPhone-only application displaying iPad sizes?

I am following along with a tutorial on Lynda.com and I am using XCode 6, while the tutorial uses XCode 5, so perhaps this is the problem. I have created a tabbed application and set devices to iPhone but my storyboard file looks like it's displaying iPad sizes. Why is this? My storyboards for other projects are not displayed like that.
In Xcode 6 Main.storyboard is the single storyboard for all devices, no matter their screen size. Open the storyboard and you’ll see that it contains a single view controller, but of an unfamiliar size. Storyboards in previous versions of Xcode had to match the screen size of the target device. This clearly isn’t possible with the “one storyboard to rule them all” approach, so the storyboard is given an abstract size instead.
Please check this tutorial :
http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial

iOS 6 Simulator

I downloaded the xcode for iOS6 along with the simulator. Now, when I run my cocos2d project, the screen doesnt follow along with the device turns. It always stays in the "up" position, when it used to always stay in the "right" position. Does anyone know how to fix this?
iOS 6 introduces a new mechanism for nominating supported interface orientations; see 'Handling View Rotations' in the UIViewController documentation.
The short version is that unless you implement -supportedInterfaceOrientations on your view controller to further limit the options then whatever orientations you specified as supported in your Info.plist will be used.
So quite probably you want to click on your project in the top left hand corner of the Xcode project navigator, select your target in the left-hand bar of the content on the right, then 'Summary' in there and ensure you have only the landscape right orientation selected.
E.g.

How do I programatically get a large iPad window on startup with MonoTouch?

I have the latest Ipad compatible Monotouch library. I have upgraded my projects to use 3.2 SDK and MonoTouch 1.9 Alpha.
The docs say you need to change the Window in your XIB for the large iPad Window. I don't use XIB. I build my interface from code by constructing the object programatically. What should I be doing to get the large iPad style Window?
Nothing (I assume).
[UIScreen mainScreen].bounds (and its equivalent on MonoTouch) will be 768x1024 in iPad mode and 320x480 in iPhone mode. If your windows and views do not have any hard-coded values they should adopt to the new size naturally.
After further investigation, I found that I needed to add an entry into the info.plist file like so:
Information Property List
UIDeviceFamily
item 0 2
Once this is present the dynamic Window class that I create is the full iPad screen size.
I think it is basically telling the system that my app supports that device. Will have to find our more in the docs.