March 2011
1 post
UIEdgeInsets
A common task for UIKit devs: Inset a CGRect by an amount from each edge: UIEdgeInsetsInsetRect(rect,insets); And to do that in one line of course the constructor of UIEdgeInsets UIEdgeInsetsMake(top,left,bottom,right); Why on earth they decided to make the order of insets the other way round as CSS will remain a mysterie. Also note that a negative inset expands towards this edge. E.g. ...
Mar 3rd
3 notes