rschiffler / ScrollViewInStoryboardExample

This is an example Swift iPhone project that demonstrates a way to get UIScrollViews working in the storyboard
0 stars 1 forks source link

Side by side items #2

Open craigpearce5 opened 8 years ago

craigpearce5 commented 8 years ago

Thanks for this great example and post on your blog. I used it to get my scroll view working. I'm having some issues getting elements (UILabel, UIImageView) sitting side by side properly. Only one appears at a time. Any tips?

rschiffler commented 8 years ago

Thanks for your feedback :)

I haven't tried this but I think if you constrain the left hand side of the left element to the parent view's left side, the right hand side of the right element to the parent view's right side and constrain the right hand side of the left element to the left hand side of the right element - they should both display at runtime.

It's hard to explain, I can do you an example if you're stuck. Good luck