Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/honghaoz/uiscrollview-and-autolayout

4 ways to use UIScrollView with AutoLayout correctly
https://github.com/honghaoz/uiscrollview-and-autolayout

Last synced: 27 days ago
JSON representation

4 ways to use UIScrollView with AutoLayout correctly

Awesome Lists containing this project

README

        

# UIScrollView and AutoLayout
Demo shows how to use UIScrollView with AutoLayout

## Four approaches to use UIScrollView
1. [Frame](https://github.com/honghaoz/UIScrollView-and-AutoLayout/tree/master/UIScrollView-Frame) - old way, before AutoLayout
2. [Mixed](https://github.com/honghaoz/UIScrollView-and-AutoLayout/tree/master/UIScrollView-AutoLayout-Mixed) - mixed with Frame and AutoLayout
3. [Pure AutoLayout](https://github.com/honghaoz/UIScrollView-and-AutoLayout/tree/master/UIScrollView-AutoLayout-Pure-Programmatically) - use AutoLayout purely and programmatically
4. [Interface Builder](https://github.com/honghaoz/UIScrollView-and-AutoLayout/tree/master/UIScrollView-AutoLayout-Pure-InterfaceBuilder) - Pure AutoLayout approach in storyboard

## How to use

![scheme-select](https://raw.githubusercontent.com/honghaoz/UIScrollView-and-AutoLayout/master/scheme_select.png)

Select scheme and hit run.

## Reference:
[Apple Technical Note TN2154 - UIScrollView And Autolayout](https://developer.apple.com/library/ios/technotes/tn2154/_index.html)

## License

MIT license. See LICENSE for details.