`
zheyiw
  • 浏览: 997185 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

iphone 弹出选择对话框 UIActionSheet

阅读更多

//弹出选择框
-(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"
    }
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics