简体   繁体   English

显示诸如“相机胶卷”之类的选项的视图的名称是什么?

[英]What is the name of the View that shows options like the Camera Roll?

我想创建一个按钮,显示诸如“相机胶卷”的“发送”选项之类的选项,但是我不知道添加按钮是哪种视图,有人可以帮我吗?

I think you are looking for an UIBarButtonItem created with UIBarButtonSystemItemAction . 我认为您正在寻找使用UIBarButtonSystemItemAction创建的UIBarButtonItem

UIBarButtonItem * baritem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction systemItem target: some_view action:@selector(some_method:)];

Reference - scroll to near bottom to see constants for possible predefined buttons with examples. 参考 -滚动到底部附近,以查看带有示例的可能预定义按钮的常量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM