iOS auto layout ios7 vs ios8
NickName:Ted Ask DateTime:2015-04-07T01:28:39

iOS auto layout ios7 vs ios8

What exactly are the improvements in auto layout ios 7 and ios 8?

My app is working fine in ios 8 but has different behavior in ios7. Constraints are breaking in ios 7 after loading views multiple times.

I want to know what are the things that ios 8 now handles which ios7 autolayout cannot do before.

Like how iOS 7 and iOS 8 handles "manually added subviews" with autoresizing masks ( Flexible width and Flexible height )

Thanks!!

**im not using size classes and relative to margin

Copyright Notice:Content Author:「Ted」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29476243/ios-auto-layout-ios7-vs-ios8

Answers
Rahul Mayani 2015-04-06T17:35:19

Working with autolayout in iOS 7 and iOS 8 is the same. Adaptive layout is really just an umbrella term for all the new layout tools in Xcode 6 and iOS 8-- one of which being Autolayout. Though autolayout isn't new, it's still a part of the adaptive layout toolset, and it's much improved in iOS 8. Other adaptive layout tools include Size Classes and Adaptive Fonts. I recommend reading this Ray Wenderlich article that has some examples of the new tools: http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial",


More about “iOS auto layout ios7 vs ios8” related questions

iOS7 Vs iOS8 auto layout and webview issue

I have a view controller that is composed of a web view and a toolbar with some basic controls. The toolbar is pinned to the bottom of the screen using auto layout. It has four constraints, to pin ...

Show Detail

Autolayout problems with iOS8 with code that works fine on iOS7

I'm in the midst of developing an app for the iPhone and iPad. It supports iOS6 and iOS7 and it uses auto layout exclusively. This past week, when Apple announced that iOS8 was ready for prime-...

Show Detail

iOS auto layout ios7 vs ios8

What exactly are the improvements in auto layout ios 7 and ios 8? My app is working fine in ios 8 but has different behavior in ios7. Constraints are breaking in ios 7 after loading views multiple...

Show Detail

iOS 7 vs iOS 8 Constraints differ in sizes

While working with Auto Layout and Constraints in the Interface Builder, I noticed that I am getting different results with the same constraints when I run iOS7 vs iOS8 simulator. For example, I ...

Show Detail

topLayoutGuide.lenght is different in iOS7 and iOS8?

I use a UIViewController inside a UINavigationcontroller. To test the topLayoutGuide I did: override func viewDidAppear(animated: Bool) { println("self.topLayoutGuide: \(self.topLayoutGuide.

Show Detail

Core Location iOS8 compatibility with iOS7

I have written the following code in my iOS8 compatible app. The app works fine on iOS8, and surprisingly to me, iOS7. My question is, why doesn't this code crash on iOS7? #import <CoreLocation/

Show Detail

IOS gives unexpected value for width on IOS7 and IOS8 version

Hi I am developing IOS application. In my application I am checking for height width X and Y values of my view. In IB I am using auto layout with right left top and height constraints.I am not spec...

Show Detail

Healthkit on iOS7 and iOS8

How to support iOS7 is my question.What I mean is not to make HealthKit work on iOS7,but to make it work on iOS8 and don't crash in iOS7.

Show Detail

Custom UITableViewCell layout changes on click (iOS7 only)

In order to get my app in line with guidelines for iOS8, I've implemented auto layout in my custom table view cell. On iOS8 this looks fine - the cells are laid out as I'd like at all screen sizes....

Show Detail

Resizing UIViews within UICollectionViewCell in iOS7 using iOS8 SDK

I have an UICollectionView with subviews in the cells. They don't resize in iOS7 using the iOS8 SDK. When running the app on iOS8 seems to be ok It seems that in the drawForRect of the subviews the

Show Detail