Category: Auto Layout and Size Classes
-
Practical Auto Layout: Are You Ready for iOS 9?
Apple messed up big time. They wanted a simple, powerful but flexible system to lay out buttons, labels, images and other objects on the storyboard. They wanted a way to make only one layout and have it work on any iOS device in any orientation. They created Auto Layout and Size classes. Then they messed […]
-
Swift Swift: Making Background Images, Small Images and Custom UIViews with Autolayout
For those who have worked a bit with auto layout, there are two topics that seems to be a real challenge: using a custom UIView, especially when using Core Graphics , and displaying photos either in the foreground or as a background. Both suffer from similar problems. When changing device or changing orientations they are […]
-
Swift Swift: View Controllers Now Available for iBooks
It was hard to tell if the cheers of joy or cries of fear were louder when Swift was announced, the next generation programming language to provide rapid development and more error free code than its predecessor Objective-C. There is nothing to fear. Grabbing the best from many different languages Swift makes for a completely […]
-
Solving Conflicting Constraints in Auto Layout
In the Auto Layout and Size Class video series, we came up with a generic layout. We made a different layout for iPhones in landscape and then another for iPads. However the preview in iPhone 6 plus in landscape is not working. In the last video we solved the problem quickly. In this post I’d […]
-
Basic Auto Layout: A Practical View for Beginners
Note: When I originally posted the Basic Auto Layout video on YouTube, I recorded it live and did not make a script I could post underneath it. This post makes the same UI as the video, but with a few differences in depth of material and process to illustrate how to handle autolayout errors and […]
-
Swift Swift: Using UIScrollView with Autolayout
Last week we talked about cameras, one thing I’d like in my camera app is the ability to take a picture then zoom and scroll around the photo. For that, we need to use the UIScrollview. UIScrollView is a very flexible and important control in UIKit. It is the basis for many the controls we […]