导航栏items

UIBarButtonItem *morebtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageRendingMode:@"fashion_more"] style:UIBarButtonItemStylePlain target:self action:@selector(moreclick)];
UIBarButtonItem *goshopingbtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageRendingMode:@"ico_store"] style:UIBarButtonItemStylePlain target:self action:@selector(goshoclick)];
NSArray *arr=[[NSArray alloc]initWithObjects:morebtn, goshopingbtn, nil];
self.navigationItem.rightBarButtonItems=arr;

你可能感兴趣的:(导航栏items)