zoukankan      html  css  js  c++  java
  • 根据服务器返回值做判断

    if ([responseObject[@"msg"]isEqualToString:@"暂时还没有收藏产品!"]) {
    //            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"没有收藏产品" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:nil, nil];
    //            alert.delegate=self;
    //            [alert show];
    //            [alert dismissWithClickedButtonIndex:3 animated:YES];
                UILabel *l=[[UILabel alloc]init];
                l.frame=CGRectMake(10, 100, [UIScreen mainScreen].bounds.size.width-20, 40);
                l.text=@"没有收藏的产品";
                l.textAlignment=NSTextAlignmentCenter;
                l.textColor=[UIColor grayColor];
                [self.view addSubview:l];
            }

  • 相关阅读:
    hdu1003 最大连续子序和
    ACM 线性规划
    ACM 概率&&动态规划
    ACM 数论 质因数分解
    ACM 计数
    ACM 概率
    ACM矩形嵌套问题LIS
    ACM 编辑距离
    ACM线性方程
    ACM 错排
  • 原文地址:https://www.cnblogs.com/-ios/p/4672520.html
Copyright © 2011-2022 走看看