标签:
// 下面弹出 UIActionSheet *popup = [[UIActionSheet alloc] initWithTitle:nil delegate:cell cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil]; [popup addButtonWithTitle:str]; [popup addButtonWithTitle:kTextCancel]; [popup setCancelButtonIndex:buttonTitles.count]; [popup showInView:[UIApplication sharedApplication].keyWindow];
NSString *buttonTitle = [popup buttonTitleAtIndex:buttonIndex];
// 查看点击的是哪个button
// 从中间出来 UIAlertView *editNameAlertView = [[UIAlertView alloc] initWithTitle:@"Edit album name" message:kTextNewAlbumMessage delegate:self cancelButtonTitle:kTextCancel otherButtonTitles:kTextSave,nil]; editNameAlertView.delegate = self; editNameAlertView.alertViewStyle = UIAlertViewStylePlainTextInput; [editNameAlertView textFieldAtIndex:0].placeholder = kTextTitle; [editNameAlertView textFieldAtIndex:0].text = self.label.text; [editNameAlertView textFieldAtIndex:0].autocapitalizationType = UITextAutocapitalizationTypeSentences;
标签:
原文地址:http://www.cnblogs.com/MrTao/p/5220877.html