Constraints for wCompact hRegular - ios

The app has to be rendered in Portrait mode of all iPhones. So i had given wCompact|hRegular. Currently i'm using XCode 6.1.1
My question is when using wCompact|hRegular, how to provide constraints separately according to iPhone 3.5 inch, iPhone 4 inch, iPhone 4.7 inch & iPhone 5.5 inch.

There is so many steps to do that. you can refer this link which will clear your ideas against multi screen constraints.
http://mathewsanders.com/designing-adaptive-layouts-for-iphone-6-plus/

Related

iOS auto layout support for all iphones?

I'm using autolayout storyboards for my ios app which is only for iPhone. When I submit, Apple reject it saying that the app should support iPhone 3.5 inch for ipad view on iphone resolution but making the UI for iPhone 3.5 inch is bit hard.
If I change it to support iPhone 3.5 inch onwards it gives bad view for iphone 5 inch. The contents are not centric there's long space for iphone 5 inch. What are the solutions?
Can I configure the settings to support iPhone 4 onwards?
or else Can I make two storyboards for iPhone 3.5 inch & 5 inches?
Yes, you can make 2 storyboards and switch them, depending on screen height, but why you can't adjust constraints for all iPhones screens? Usually this is possible.
One way for complex layouts - create constraint outlets and change them in code.
Another way - divide design to smaller UIViews, that contains elements, like container and set constraints between them.

iOS Autolayout not working for iphone 6

I'm having real trouble here for some time. I'm not using size classes (app is for os 6 +). I'm using auto layout, I don't want to have multiple storyboards for each screen size. For 3.5 and 4 inch screen everything is ok. For 4.7 + inch it's not. So to show you what is the problem. This is for 3.5 and 4 inch screen:
This is 4.7 inch screen:
As you see, right arrow goes to the left. It has Vertical Center in container and its height is 28x28. It has right constraint 8 points like this (I've unchecked Constrains to margin):
I cannot make it work for iPhone 6 and iPhone 6 plus. What am I doing wrong here?

How to Support All iPhone Screen Sizes

I have an app in Xcode 6.2 with the storyboard supporting all devices. For some reason, whenever I load the application on the iPhone 6+, or iPhone 4s, or iPad, the screen doesn't take the size of the iPhone/iPad. However, on an iPhone 6, 5s, and 5, the screen takes the full size of the iPhone. Why is this? I am very unfamiliar with sizes and how to properly support all sizes. Right now, I have set the screen sizes in the storyboard for each view controller to 320 x 568. The width is "Compact" and the height is "Any".
If this has anything to do with this, my iPad screen comes out blank. It's just white. Apple recently rejected my external testers app submission due to this.
I have done lots of research on these 2 questions, but I had a hard time understanding anything, as I am new to iOS Development.
To properly handle varying sizes and how that affects your layout you will want to use auto layout. Check out this great tutorial from ray wenderlich to get you started. Once you get started feel free to post more specific questions about any roadblocks you run into. Good luck!
http://www.raywenderlich.com/64392/video-tutorial-beginning-auto-layout
When you want your app to work on any device, ideally you should keep the width and height both set to "Any". You should switch to "Compact" or "Regular" width or height only if you have any requirement specific to a particular device. To understand things in detail read more on Size classes. It is very nicely documented in this Apple developer site.
iphone:
iphone 4- 320x480
iphone 5- 320x568
iphone 6- 375x667
iphone 6plus - 414x736
and also ipad:
ipad mini - 768x1024
ipad air - 768x1024
ipad pro 10.5 - 834x1112
ipad pro 12.9 - 1024x1336

How to target a specific iPhone size when developing in Xcode 6.1

I've built my 4 inch screen and 3.5 inch screen apps in Xcode 5.1.1. Yesterday I downloaded Xcode 6.1 to build those same apps for iPhone 6 and 6+. I'm not using auto layout (because it messes with my UIImageViews) and to use size classes you must also use auto layout. So I can't use size classes either. When I use that 1 storyboard for 4.7inch and 5.5 inch iPhone storyboards that are in Assistant Editor, i want to move an image in only 4.7 inch but instead the image moves in both 4.7 inch and 5.5 inch iPhones. How do I make it that the image moves only in 4.7 inch instead of both?

itunnes connect upload app only for 4 inch (iPhone 5, iPhone 5s)

Our binary was rejected, because the 3.5-inch iPhone does not display properly views. But we do not want to support 3.5 inches. Only the iPhone 5 and above.
How to disable 3.5 inches in itunnes connect ?
I believe it isn't possible to not support 3.5" devices. Your best bet would be to use Auto Layout and setup constraints to make everything resize automatically, it will also make your life easier for the new iPhone 6 & 6 Plus with different screen resolutions.
You should remove launch image for 3.5 inch if you want to support only iPhone 5 and above.

Resources