zoukankan      html  css  js  c++  java
  • 系统消息中的类别 无内容是的提醒

    messageList 

     

    type = 1 定电话

    2 定门诊

    3 定制

    4 送花

    5 医患 

     6 知平台 7

     

     

     

     

    -(void)createShowMessage:(NSString *)labelTitle {

        

        

        UIImageView * ImageView=(UIImageView *)[self.view viewWithTag:333];

        UILabel * label = (UILabel *)[self.view viewWithTag:222];

        

        if (!ImageView) {

            

            UIImageView * ShowImageView= [[UIImageView alloc]initWithFrame:CGRectMake((ConentViewWidth-157/2)/2, (ConentViewHeight-181/2)/2-44, 157/2, 181/2)];

            ShowImageView.image = [UIImage imageNamed:@"zanwushuju1"];

            ShowImageView.tag = 333;

            

            [self.view addSubview:ShowImageView];

            NSLog(@"又建了一次?????????");

        }else{

            

            NSLog(@"没有重新建!!!!");

        }

        

        if (! label) {

            

            UILabel * Showlabel = [[UILabel alloc]initWithFrame:CGRectMake((ConentViewWidth-200)/2, (ConentViewHeight-181/2)/2-44+181/2+10, 200, 10)];

            Showlabel.textAlignment = NSTextAlignmentCenter;

    //        Showlabel.textColor = RGB11(212, 212, 212);

            Showlabel.textColor = [UIColor grayColor];

            Showlabel.tag = 222;

            Showlabel.text = labelTitle;

            [self.view addSubview:Showlabel];

        }

        

        

        

        

    }

     

    -(void)removeShowMessage{

        

        UIImageView * ImageView=(UIImageView *)[self.view viewWithTag:333];

        

        

        [ImageView removeFromSuperview];

        

        UILabel * label = (UILabel *)[self.view viewWithTag:222];

        

        [label removeFromSuperview];

    }

  • 相关阅读:
    中国用户mac上快速安装nodejs
    移动前端的开发痛点
    前端模块化思考
    tcpdump学习
    curl 同时发送多个请求
    apache 做http代理
    文件 FIFO队列
    mysql多表字段名重复的情况
    时间戳实现增量数据同步
    python 学习
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6015640.html
Copyright © 2011-2022 走看看