1
如何創建如圖所示的圓角矩形?另外我的第二個問題是如何獲得多行,如何格式化成多行,如紅色矩形所示?提前致謝!。圓角矩形框繪製-iOS
CGRect viewRect=CGRectMake(30,30,320,55);
UIView *myView=[[UIView alloc]initWithFrame:viewRect];
myView.backGroundColor=[UIColor whiteColor];
[self.view addSubview:myView]
UILabel *label=[[UILabel alloc]initwithFrame:CGRectMake(30,32,25,12)];
label.font=[UIFont fontWithName:"System" size:12];
label.textColor=[UIColor blackColor];
[self.view addSubview:label]