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];

    }

  • 相关阅读:
    python操作MYSQL时防止SQL注入
    防止SQL注入的一些解决方法
    Gitbook 学习链接
    MySQL_编码utf8_bin和utf8_general_ci的区别
    使用linux脚本shell检查大数据各节点服务是否运行正常
    shell脚本监测elasticsearch集群节点
    Filebeat+Kafka+Logstash+ElasticSearch+Kibana搭建日志收集系统
    python中集合用法大全
    python常用内置函数
    跨模块全局变量的使用问题
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6015640.html
Copyright © 2011-2022 走看看