- (IBAction)showActionSheet:(UIButton *)sender {
UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Select the operation to proceed?"delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Create", @"Update", @"Duplicate", nil] ;
[actionSheet showInView:self.view];
}
如果沒有選擇任何內容,自動選擇取消;基於計時器,例如, 5秒後景氣取消?如何在objective-c的actionSheet中自動選擇一個選項?
UIActionSheet不UIAlertController因爲我想使的iOS 7.1兼容的二進制文件
我想如果u點擊之外,它會解僱自己 –