1.新建对象
[[X alloc]init]
2.新建一个自动释放的对象
[[[X alloc]init]autorelease]
3.释放对象
if(X){[X release];X=nil;}
4.根据图片名,获得UIImage 适合加载小图
[UIImage imageNamed:X]
5.设置字体大小
[UIFont systemFontOfSize:X]
6.根据RGB来获得UIColor
[UIColor colorWithRed:X/255.0 green:Y/255.0 blue:Z/255.0 alpha:1]
7.使用 x,y,w,h来创建一个自动释放的UILabel,UIButton等控件都可用
[[[UILabel alloc] initWithFrame:CGRectMake(X, Y, Z, K)] autorelease]
8.设置控件的frame
CGRectMake(X, Y, Z, K)
9.创建UIImageView对象
[[[UIImageView alloc] initWithImage:X] autorelease]
10.设置字体类型和大小
[UIFont fontWithName:@"Helvetica Neue" size:X]