首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

iphone开发-大区域中平铺(非拉伸)图片

2012-11-23 
iphone开发--大区域中平铺(非拉伸)图片创建一个UIView的子类,在- (void)drawRect:(CGRect)rect中写入self

iphone开发--大区域中平铺(非拉伸)图片

创建一个UIView的子类,在- (void)drawRect:(CGRect)rect中写入

    self = [super initWithFrame:frame];    if (self) {        [self drawRect:frame];    }    return self;
在调用的地方直接调用- (id)initWithFrame:(CGRect)frame即可。

?

热点排行