IT虾米网

UIActionSheet的使用

flyfish 2018年06月24日 手机开发 965 0
//UIActionSheet———————————————————————————————————————————————————————————————— 
- (void) showInfo:(NSNotification *) notice{ 
//    NSLog(@"键盘马上出来了,%@",notice.userInfo); 
//    UIActionSheet * action=[[UIActionSheet alloc] initWithTitle:str delegate:self cancelButtonTitle:@"cancle" destructiveButtonTitle:@"destructive" otherButtonTitles: @"bt1",@"bt2",@"bt3",@"bt4",nil]; 
     
//    [action showInView:self.view]; 
} 
 
 
//UIActionSheet代理方法 
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex 
{ 
//    NSLog(@"%li", buttonIndex); 
} 

评论关闭
IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

网络状态检测Reachability