我想创建一个按钮,显示相机胶卷的发送选项等选项,但我不知道添加按钮的视图类型,有人可以帮我吗?
答案 0 :(得分:1)
我认为您正在寻找使用 UIBarButtonSystemItemAction 创建的 UIBarButtonItem 。
UIBarButtonItem * baritem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction systemItem target: some_view action:@selector(some_method:)];
Reference - 滚动到近底部,查看可能的预定义按钮的常量和示例。