Pages
Home
HTML
Corona SDK
Cocos2d
Xcode
PHP
Tuesday, 24 December 2013
How to set an image at the left corner of an UIButton
Let button Frame is:
myButton.frame = CGRectMake(
0
,
0
,
80
,
30
);
To set an image at the left corner of an UIButton, do as follows:
[myButton setImageEdgeInsets:UIEdgeInsetsMake(
0
,
30
,
0
,
80
)];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment