我想将导航控制器的右侧栏按钮项设置为图像,所以我写了像
这样的代码UIImageView *image = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Button.png"]];
image.frame=CGRectMake(0, 25, 35, 40);
UIBarButtonItem *customButton = [[UIBarButtonItem alloc]initWithCustomView:image];
customButton.title=[NSString stringWithFormat:@"Hi"];
[customButton setImage:[UIImage imageNamed:@"Button.png"]];
它就像我想要的那样然后按钮不可点击。那个????
的解决方案