Tuesday, 24 December 2013

How to set an image at the left corner of an UIButton

Let button Frame is:

  myButton.frame = CGRectMake(008030);

            
To set an image at the left corner of an UIButton, do as follows:

  [myButton setImageEdgeInsets:UIEdgeInsetsMake(030080)];

No comments:

Post a Comment