zoukankan      html  css  js  c++  java
  • 提示的简易写法

    1.提示的声明方法
     
    UIAlertView *alert = [[UIAlertViewalloc] initWithTitle:@"提示"
                                                        message:@"您还没有支付哦,返回将取消订单,确认返回?"
                                                       delegate:nil
                                              cancelButtonTitle:@"返回"
                                              otherButtonTitles:@"继续支付", nil];
    alert.tag = 1002;
    alert.delegate = self;
    [alert show];
     
     
    2.代理写法:
     
    - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
    {
        if (alertView.tag == 1001) {
            return;
        }
       
        if (buttonIndex == 1) {
            return;
        }
        else {
            [supergoBack];
        }
    }
     
     
    - OVER
     
     
  • 相关阅读:
    gcc -l:手动添加链接库
    gcc -S xx
    gcc -E xx.c
    gcc xx -o xx
    gcc -c xx.c 选项讲解
    GCC选项
    关于Apache日志的统计
    Vxlan——原理
    MySQL常见面试题
    php笔试题(3)--转载
  • 原文地址:https://www.cnblogs.com/firstrate/p/7888112.html
Copyright © 2011-2022 走看看