Pages
Home
HTML
Corona SDK
Cocos2d
Xcode
PHP
Showing posts with label
corner
.
Show all posts
Showing posts with label
corner
.
Show all posts
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
)];
Older Posts
Home
Subscribe to:
Posts (Atom)