nsomar / OAStackView

Porting UIStackView to iOS 7+
MIT License
2.14k stars 191 forks source link

Example use in UIScrollView #44

Closed fatuhoku closed 9 years ago

fatuhoku commented 9 years ago

It would be great if this project would demonstrate how you could dynamically add more subviews and cause the OAStackView to grow.

Lipe991 commented 9 years ago

Yes please provide some example

bencallis commented 9 years ago

Why not just embedded the StackView in a scrollview (providing you get your constraints correct) it will just work.

delebedev commented 9 years ago

@Lipe991, @bencallis is right: stackview can be placed in scroll view as any other view with valid intrinsic content size (height in particular). Please refer to apple tech note: https://developer.apple.com/library/ios/technotes/tn2154/_index.html