Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/honghaoz/uiscrollview-and-autolayout
- Owner: honghaoz
- License: mit
- Created: 2016-01-11T15:03:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T15:49:04.000Z (almost 9 years ago)
- Last Synced: 2023-07-31T15:47:14.655Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 93.8 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.