zoukankan      html  css  js  c++  java
  • UIAlertView

    UIAlertView 继承于UIView

    初始化方法:- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id /* <UIAlertViewDelegate>*/)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles,...,nil;  初始化方法创建一个弹出框对象,指定标题(title)、显示的文字(message)、委托对象(一般指的是当前的师徒控制器self,所以当前视图控制器需要遵守UIAlertViewdelegate,并实现响应的协议方法),取消按钮的标题(cancelButtonTitle)、其他按钮的标题(多个的话使用逗号隔开,以nil结尾,同时存在三个以上按钮时纵向排列)

    属性:

    @property(nonatomic,assign) id /*<UIAlertViewDelegate>*/delegate; //委托对象

    @property(nonatomic,copy) NSString *title;                                      //标题文件

    @property(nonatomic,copy) NSString *message;                //显示的消息文本信息

    @property(nonatomic,readonly) NSInteger numberOfBUtton;      //弹出框中按钮的个数

    @property(nonatomic) NSInteger cancelButtonIndex;                        //

  • 相关阅读:
    vue动态改变样式
    前端上传到七牛云图片
    vue实现发送验证码60秒
    移动端使用lib-flexible
    作用域插槽
    vue中的keep-alive
    vue优化
    vue动画move的实现
    vue自带的动画效果
    v-model的理解
  • 原文地址:https://www.cnblogs.com/wangguimin/p/4491275.html
Copyright © 2011-2022 走看看