I have an existing iPad portrait mode app (XCode 7.1) that I am trying to add landscape mode to. I am trying to follow one of Ray Wenderlic's outdated (2013) tutorials for using Auto Layout.
At one point, he says:
Hold down the ⌘ key while you click on the two views on the top (the green and yellow ones), so that both are selected. From Xcode’s Editor menu, select Pin\Widths Equally:
which doesn't exist in the Editor menu. I have looked in SO and Google and found nothing regarding XC 7.1 and pinning. So how do I pin objects in XCode 7.1?
You can use bottom toolbar in Interface Builder. Click "Pin" -> check "Equal Width" -> "Add Constraints".
Screenshot:
Related
iPad is not present in the size inspector of storyboard. This is the section located in the lower left side which can show you how the View Controller will look like on different size phones.
However it shows other devices. Can someone tell me how I can add iPad?
Find the xcodeproj file in the Project Navigator on the left side of the screen. Then Under Deployment Info -> Devices, pick Universal from the dropdown.
Hi i switched to xcode 7 recently, and as usual some starting problems arises when switching to new ides.
The screen width and height of my app is still set for iphone 5 when am actually running it on iphone 6. This was not happening in xcode 6 it used to render properly for both phone models.
You can see the tab bar buttons ending little higher than bottom and screen is not expanded completely to the right.
Is there any launch image or any other setting i need to add to make screen size fit for all devices.
I have the following settings in my xcode.
firstly, you have to check that you had enabled Size Classes
Secondly, you need to set the constraints at the storyboard accordingly
*
Unchecking "Use Size Classes" option and then coming back and re-checking it again fixes this issue.
1. In the project navigator, select a storyboard or xib file.
2. The file’s contents open in Interface Builder.
3. Choose View > Utilities > Show File Inspector.
4. In the Interface Builder Document section, un-tick the "Use Size Classes" checkbox.
5. Leave the menu. Come back and tick the "Use Size Classes" checkbox again.
*
When testing my app on iOS9, I have some Static TableViewCells that show up completely blank, but show normal in iOS8.
If I scroll those cells outside of the view and then back, the content magically appears.
This is an iPhone only app, so I am using wCompact hRegular:
Have a feeling it has to do with Size Classes and Autolayout.
Using XCode 7 Beta 5.
Anyone seen this happen?
Unchecking "Use Size Classes" option and then coming back and re-checking it again fixes this issue.
In the project navigator, select a storyboard or xib file.
The file’s contents open in Interface Builder.
Choose View > Utilities > Show File Inspector.
In the Interface Builder Document section, un-tick the "Use Size Classes" checkbox.
Leave the menu. Come back and tick
the "Use Size Classes" checkbox again.
Credit goes to Max108 on the Apple Dev Forums.
I am using XCode 7 (Beta) to test multitasking, but I could not get a way to test with it.
I just want to make sure is there anyone like me, who facing the same issue.
You can test it.
Just run ios simulator iPad Air 2 (ios 9)( because only this device supports Split View) and swipe from right to left near of middle edge of the screen
To adopt Multi-Tasking in your app, just make sure all below points followed:
Require XCode 7 (Beta 4) and later for having look in to the simulator through choosing iPad Air 2 because only this device supports Split View.
Provide a LaunchScreen.storyboard file ( instead of a .png image file as we did in iOS 7 and earlier).
In your project’s Info.plist file, in the “Supported interface orientations (iPad)” array, declare support for all four device orientations.
If you must opt out of Slide Over and Split View, do so explicitly by adding the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES. You can do this in the property list editor or in the General > Deployment Info area in the target editor.
Select storyboard, click the File Inspector icon in the right side bar. check the box next to Use Size Classes.
Reference Link
To adopt Multi-Tasking in your app. apply the following points:
Support all orientation from the target's General section in settings.
In the General section too. remove the check next to Requires full screen if any.
Select storyboard, click the File Inspector icon in the right side bar. check the box next to Use Size Classes. Check out tutorials how to use size class to adjust your views according to the screen size assigned to your app.
Then, run the simulator. Do a small drag from the right. An arrow will
appear. do a strong drag from it towards the centre.
I am following video swift programming language, today I saw the option about autolayout, as you can see in the picture; then I get an application I already had (the orange buttons) but I can't see the icons of the autolayout under the image.
do you enable autolayout for your old app?
- check File Inspector on the right panel, check Use Autolayout checkbox