Сделай это на заказ.если вы хотите скруглить углы, импортируйте каркас QuartzCore, добавьте его в файл .h или .m:
#import <QuartzCore/QuartzCore.h>:
и в viewDidLoad
:
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *image = [UIImage imageNamed:@"arrow.png"];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:image forState:UIControlStateNormal];
// this is the code to make the button's corners round
[button setCornerRadius:cornerRadiusParam];
[button setMasksToBounds:YES];
}