系统消息中的类别 无内容是的提醒

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

}

posted @ 2016-10-31 13:59  zhen_zhen  阅读(127)  评论(0编辑  收藏  举报