首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

iphone 弹出抉择对话框

2012-09-28 
iphone 弹出选择对话框//弹出选择框-(void)showOptionSheet{NSString *title [Comm str:@option]UIAc

iphone 弹出选择对话框

//弹出选择框-(void)showOptionSheet{        NSString *title = [Comm str:@"option"];        UIActionSheet * dateSheet = [[UIActionSheet alloc] initWithTitle:title                                                                                              delegate:self                                                                                    cancelButtonTitle:[Comm str:@"passwordEdit"]                                              destructiveButtonTitle:[Comm str:@"PayPasswordEdit"]                                                                              otherButtonTitles:nil];    dateSheet.actionSheetStyle = self.navigationController.navigationBar.barStyle;    [dateSheet showInView:self.view];}-(void)actionSheet:(UIActionSheet*)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{    if (buttonIndex == 0) {           //@"PayPasswordEdit"    }else if (buttonIndex == 1) {       //@"passwordEdit"    }}

热点排行