UIView *bgright=[[uiview alloc]initwithframe:cgrectmake (screen_width/2, 0, screen_width/2, )];
Bgright.backgroundcolor=[uicolor Whitecolor];
[Bgview Addsubview:bgright];
//gzz0121
UILabel *labselvier = [[UILabel alloc]initwithframe:cgrectmake (0,one, + )];
Labselvier.text = @ " patients send flowers ";
Labselvier.font = Systemfont (in);
Labselvier.textcolor = [Uicolor blackcolor];
Labselvier.textalignment=nstextalignmentleft;
Labselvier.backgroundcolor=[uicolor Clearcolor];
[Labselvier SizeToFit]; //gzz0418
[Bgright Addsubview:labselvier];
UILabel *labamoutr = [[UILabel alloc]initwithframe:cgrectmake (Cgrectgetmaxx (labselvie.frame) +7, )];
Labamoutr.text = [NSString stringWithFormat:@ "%@", Sendflowernumstr];
Labamoutr.font = Systemfont (in);
Labamoutr.textcolor =bgcolor;
Labamoutr.textalignment=nstextalignmentleft;
[Labamoutr SizeToFit];
Labamoutr.centery=labselvier.centery;
[Bgright Addsubview:labamoutr];
CGFloat centr=screen_width/2-labselvier.width-labamoutr.width-;
CGFloat widtddr=labselvier.width+labamoutr.width+;
Bgright.frame=cgrectmake (centr/2+screen_width/2, Bgright.y, widtddr, bgright.height);
2016.04.18 view nesting of two centered lable