标签:style color res ad ui text c# view
nsobject--uiresponder--uiview
uiresponder类定义了一些操作
uiview有三个属性: frame, bounds, center
center用于改变控件位置, bounds 用于改变控件大小
UILabel控件:
类似于c#的label。
CGRect frame = CGRectMake(20,20,100,100);
self.label = [[UILable alloc]initwithframe:frame];
[self.view addSubview:self.label];
UITextview控件:可滚动的多行视图文本区域
CGRect frame = CGRectMake(20,20,200,200);
self.textview = [[UITextView alloc]initWithFrame:frame];
self.textview.text = @"dsafdsafdsafdsa";
标签:style color res ad ui text c# view
原文地址:http://www.cnblogs.com/AngryCooder/p/3894163.html