我尝试了很多方法来找到UIBarButtonItem的发光效果。现在,我通过创建一个UIButton,并将其作为UIBarButton的customView来实现。是否有其他更简单的方法?(例如UIBarButtonItem的内置属性)
我尝试了很多方法来找到UIBarButtonItem的发光效果。现在,我通过创建一个UIButton,并将其作为UIBarButton的customView来实现。是否有其他更简单的方法?(例如UIBarButtonItem的内置属性)
@property(nonatomic) BOOL showsTouchWhenHighlighted
So...
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.showsTouchWhenHighlighted = YES;
UIBarButtonItemStylePlain
作为按钮样式,使用以下方法之一吗?
- (id)initWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action