How can I make a UIBarButtonItem like this:
![enter image description here](https://i.stack.imgur.com/V1dxi.png)
我在 SystemItem 值中找不到它。
Thanks
您称为信息按钮的图像按钮。它是一个系统按钮,
使用下面的方法将其作为您的右栏按钮项
UIButton* myInfoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
[myInfoButton addTarget:self action:@selector(InfoButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:myInfoButton];
这是文档链接UI按钮类型
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)