UIView has the properties frame, bounds, center, and origin, and they all seem to be interrelated. Most of the time, I deal with frame when setting the position and...
Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController to its UIView via...
Is it possible to control UIView border properties (color, thickness, etc…) directly from interface builder or I can only do it programmatically? 9 Answers 9
I’m currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it has rounded corners. On a device with iOS 7.1...
I’m looking to perform a perspective transform on a UIView (such as seen in coverflow) Does anyonew know if this is possible? I’ve investigated using CALayer and have run...
Could someone give a small example of applying the blur to an image? I’ve been trying to figure out the code for a while now 🙁 still new at...
I was in an (probably false) assumption that enabling the right margin indicator in xib is equivalent to using UIViewAutoresizingFlexibleLeftMargin inside code and so on. So, I used to...
If I have a UIButton arranged using autolayout, its size adjusts nicely to fit its content. If I set an image as button.image, the instrinsic size again seems to...
The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns the position of the UIView in relation to it’s immediate superview....
Can anyone tell me how I can mimic the bottom sheet in the new Apple Maps app in iOS 10? In Android, you can use a BottomSheet which mimics...