@blog.justoneplanet.info

日々勉強

ボタンの画像を伸縮して貼り付ける

めも。

UIImage *bg = [[UIImage imageNamed:@"button.png"] stretchableImageWithLeftCapWidth:10 topCapHeight:10];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setFrame:CGRectMake(20, 366, 136, 38)];
[btn setBackgroundImage:btnBg forState:UIControlStateNormal];

コメントはまだありません»

No comments yet.

RSS feed for comments on this post.TrackBack URL

Leave a comment