0

如何使 UIBarButtonItem 具有属性(样式:边框和标识符:自定义)单击效果(如 UIButton 选择状态)?

4

1 回答 1

1
UIButton *button = [UIButton button...];
...

UIBarButtonItem *barButtonItem = [UIBarButtonItem initWithCustomView:button];

查看苹果的文档

于 2012-08-03T06:50:39.090 回答