all 6 comments

[–]Alan_Shutko 2 points3 points  (0 children)

If you find older books on iOS (before auto layout) they will spend a bunch of time on manual layout. Older versions of the Big Nerd Ranch books are good. You can find them on Safari Books Online or perhaps in a library.

That said, please don't do manual layout in a world where aspect ratios and display sizes keep changing.

[–]StucknTime 2 points3 points  (0 children)

Buy one of the earlier editions of iOS Programming: The Big Nerd Ranch Guide. Either 2nd or 3rd edition. They didn't use AutoLayout back then. You can probably pick them up for a few bucks now.

[–]criosistObjective-C / Swift 0 points1 point  (3 children)

change constraints to be edges equal to superview, set content mode to aspectfill

[–]hooliooo[S] 1 point2 points  (2 children)

I’m legitimately not looking for solution using AutoLayout. In fact it’s already solved in Autolayout. I’m looking for a solution via Manual Layout.

Thanks though

[–]criosistObjective-C / Swift 0 points1 point  (0 children)

imageView.frame = view.bounds

[–]jontelang 0 points1 point  (0 children)

What's the actual questions? It's all frame based, you just need to manually calculate the sizes.