Monday, June 20, 2016
Tips: ImageView with AspectFill settings
Recently, I met a small issue of when setting imageView with aspectFill, then images became the original large then break the view's layout. special when use scrollView's pagination you will want a picture for one page.
And my trick to working around this is set the "clip subview" for parents view of that imageView. so that you can have just one page for a aspectFill setted imageView nicely.
Welcome to share your tricks anytime.
Sunday, June 12, 2016
About AutoLayout and ScrollView
Not sure if you have trapped into this issues, but I have when I try to use scrollView and put something inside it using Interface Builder. I found all are not work as usual.
and this article helps me out, find tricks to resolve the problem.
https://www.natashatherobot.com/ios-autolayout-scrollview/
The key points are:
1, The ScrollView should have only ONE child view.
2, Adding an Equal Width constraint between the main View and the ContentView
welcome any comments and sharing
https://www.natashatherobot.com/ios-autolayout-scrollview/
The key points are:
1, The ScrollView should have only ONE child view.
2, Adding an Equal Width constraint between the main View and the ContentView
welcome any comments and sharing
Subscribe to:
Posts (Atom)