How do I apply a perspective transform to a UIView?

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 through all the pragmatic programmer Core Animation podcasts, but I’m still no clearer on how to create this kind of transform on an iPhone. Any help, … Read more

How to use UIVisualEffectView to Blur Image?

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 obj c! The UIVisualEffectView provides a simple abstraction over complex visual effects. Depending on the desired effect, the results may affect content layered behind the view … Read more

Autoresizing masks programmatically vs Interface Builder / xib / nib

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 think according to this snapshot: Later today I had to cross check, and stumbled upon this thread. And also the apple documentation, entitled with the section … Read more

Autolayout – intrinsic size of UIButton does not include title insets

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 account for this. However, if I tweak the titleEdgeInsets of the button, the layout does not account for this and instead truncates the button title. How … Read more

iPhone – Get Position of UIView within entire UIWindow

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. I need to determine the position of the UIView in the entire 320×480 co-ordinate system. For example, if the UIView is in a UITableViewCell it’s position … Read more