29,027
社区成员
发帖
与我相关
我的任务
分享
UIButton* rightBun = [UIButton buttonWithType:UIButtonTypeCustom];
rightBun.frame = CGRectMake(0, 0, 25, 30);
[rightBun setBackgroundImage:[UIImage imageNamed:@"back"] forState:normal];
[rightBun addTarget:self action:@selector(Shareit) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem* right = [[UIBarButtonItem alloc] initWithCustomView:rightBun];
self.navigationItem.rightBarButtonItem = right;
UIButton* rightBtntwo = [UIButton buttonWithType:UIButtonTypeCustom];
rightBtntwo.frame = CGRectMake(40, 0, 25, 30);
[rightBtntwo setBackgroundImage:[UIImage imageNamed:@"back"] forState:normal];
[rightBtntwo addTarget:self action:@selector(Shareit) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem* righttwo = [[UIBarButtonItem alloc] initWithCustomView:rightBtntwo];
self.navigationItem.rightBarButtonItem = righttwo;