I know that UIStackview is a new feature in iOS 9. If I want my app to support iOS 8 or iOS 7, does that mean I shouldn't use stack views?
It looks like it's for iOS 9+.
UIStackView
Availability
Available in iOS 9.0 and later
UIStackView is only available in "iOS 9.0 and later".
If you need to support earlier versions of iOS, check out OAStackView, a drop-in replacement which "implements most of the features from UIStackView" and supports iOS 7+.
A few minor features haven't been finished yet. I tried it out using the UIStackView-Playground project and it works pretty well.
You could also check out MarkupKit (I'm the project's author):
https://github.com/gk-brown/MarkupKit
The LMColumnView and LMRowView classes are very similar to UIStackView but work with iOS 8. They also have a couple features that UIStackView doesn't have, such as the ability to set a background color and weight-based distribution.
See this article for more information:
https://gkbrown.wordpress.com/2015/09/29/using-uistackview-with-markupkit/
UIStackView is supported only in iOS 9+. For people looking for a backport to iOS7/8:
https://github.com/oarrabi/OAStackView
Related
Will the UIStackView work with iPhone all versions?
You can read about UIStackView here. It requires minimum iOS 9.0, read here https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIStackView_Class_Reference/.
Also you can check all device which support iOS9 from this link
iOS 9 supported devies
simple Question , im trying to understand which minimal ios support SizeToFit method.
I have tried it on a IOS 7 simulator and its seems to work properly.
But according to the docs :
sample code :
numberToolbar.sizeToFit()
It support IOS 8+, how is it possible? Is it safe to use on ios 7?
Have a look at Apple's documentation here for sizeToFit. It says :
Availability
Available in iOS 2.0 and later.
So, don't worry it will work on iOS7
I am planning to use different storyboards (one with and another without autolayout) because I need to have my app from 4.3 to 5.0(without autolayout) and 6.0 onwards (with autolayout) but I cannot build it on my device as I'm failed by
Illegal Configuration: Auto Layout on iOS Versions prior to 6.0
I don't think I should disable my storyboard autolayout as I got another storyboard to cater the old devices.
How do I able to manage this?
Note: regarding why I need to support the iOS 4.3 / 5, I cannot make the decision as my business management made that decision. If I support iOS 5 onwards, is there a way to counter for this?
I would like to know whether there is minimum IOS version for autolayout (like will it be ok on ios 4?). I am reading this https://developer.apple.com/Library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html and it say it is included in xCode 5. Is there minimum ios version to use autolayout?
iOS 6.0 is the minimum version. If you see, for example, the NSLayoutContraint documentation you'll see the version number information there.
Right now I am working on non-arc project for ios3.0. They haven't designed anything by interface builder. Everything coded is both for landscape view and portrait view separately. My Problem is when I try to add the same image for background of another screen, it appears to be cropped. also enabling the auto resize subviews gives me error. When I try to set views for portrait and landscape view, it doesn't work.
one more thing, that project is only developed for iPad. if they want it to be done for iPhones, should i have to start from scratch separately for iPhone because of above mentioned problems ?
please suggest me if the upgraded app will support for 64 bit ipad retina.
Thanx in advance
Make your project universal by changing the setting shown in the image below. Also it is better to drop support for iOS 3 as nobody uses it anymore and support iOS 6 and above. It will give much more options and flexibility regarding frameworks and layouts.
To support 64-bit devices you have to build with iOS 5 or higher as minimum supported iOS version. Best practice is to support the two latest releases (iOS 6 and 7 at this moment) as most iOS users update their devices fast after each os release.