UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(0, 0, 144, 36); [button setTitle:@"hogehoge" forState:UIControlStateNormal]; UIImage *image = [[UIImage imageNamed:@"button_image_hoge.png"] stretchableImageWithLeftCapWidth:5 topCapHeight:0]; [button setBackgroundImage:image forState:UIControlStateNormal]; [self.view addSubview:button]; - (UIImage *)stretch