めも。
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];