zoukankan      html  css  js  c++  java
  • UIActionSheet底部弹出框

    <底部弹出框来提示用户信息>
        1.遵循代理方法<UIActionSheetDelete>
        2.调用放法 [UIActionSheet *sheet=[UIActionSheet alloc]initWithTitle:@“通关了!” delegate:self cancelButtonTitle:@“取消” destructiveButtonTitle:@“购买” otherButtonTitles:@“购买1”,@“购买2”,nil]
        [sheet showInView:self.view];

        3.点击第几个按钮根据ButtonIndex 传值  调用代理方法
        - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        {    NSLog(@"%d,执行完UIActionSheet的代理方法时调用这个方法",buttonIndex);    }

  • 相关阅读:
    输出三角行
    练习
    循环
    阶乘
    常量、变量、数据类型 搞错N+1次 累死
    UTF-8
    数据库事务
    Jsp的使用
    Cookie和Session
    请求转发和重定向
  • 原文地址:https://www.cnblogs.com/mawenqiangios/p/4999317.html
Copyright © 2011-2022 走看看