UITextView inside UIScrollView with AutoLayout

After a few days of research and getting my hands dirty with UIScrollView + UITextView + Auto Layout, I successfully got a fully working UIScrollView. I want to share my solution just in case someone might stuck on the same situation. Add UIScrollView inside the main view in Storyboard Add UIView inside the UIScrollView Add … Read more

With Auto Layout, how do I make a UIImageView’s size dynamic depending on the image?

The image view’s intrinsic size is already dependent on the size of the image. Your assumptions (and constraints are correct). However, if you’ve set up your image view in interface builder and have not provided it with an image, then the layout system (interface builder) won’t know how big your image view is supposed to … Read more

tech