Saturday, February 14, 2015

iOS 8.0 Auto layout applications


in iOS 8.0, introduced a concept called universal story board, which means we can create a same storyboard for iPhone and iPad. 
We can turn this off by unchecking the size classes. 

The one nice thing noticed about this is, there is a feature called Preview in Assistant editor. Which lets developer to see how the ui looks like on different resolutions. 
This can be opted in by Clicking “Show the Assistant Editor”. By default, it would have been set to Automatic, instead, set to Preview. 
We can add more and simulators in it and see how it looks on devices models and screen resolutions

For the tutorial perspective, it is dragging a label at the story board and for aligning to the centre, ctrl drag to the 4 edges of the screen and select Trailing edge to the container margin
Like wise, do the same for all the edges. 

However, this seems to be equivalent to centre vertically and horizontally in the container.  

References:

No comments:

Post a Comment