我正在尝试找到正确的控件来显示一个选择选择器,就像长按图像时出现在Safari中一样。
它应该是某种UIPickerView,但它的设计并不相同。
欢迎任何想法。
答案 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];