如何显示多选选择器

时间:2014-04-15 16:31:42

标签: ios7

我正在尝试找到正确的控件来显示一个选择选择器,就像长按图像时出现在Safari中一样。

Menu i would like to display

它应该是某种UIPickerView,但它的设计并不相同。

欢迎任何想法。

1 个答案:

答案 0 :(得分:1)

这看起来像UIActionSheet,可以从UITabBarController中看到,例如:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"This will delete all your records. Are you sure you want to continue?" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Yes, go ahead." otherButtonTitles: nil];
[actionSheet showFromTabBar:self.tabBarController.tabBar];