iphone开发--大区域中平铺(非拉伸)图片
创建一个UIView的子类,在- (void)drawRect:(CGRect)rect中写入
self = [super initWithFrame:frame]; if (self) { [self drawRect:frame]; } return self;在调用的地方直接调用- (id)initWithFrame:(CGRect)frame即可。
?
发布时间: 2012-11-23 22:54:33 作者: rapoo
iphone开发--大区域中平铺(非拉伸)图片
创建一个UIView的子类,在- (void)drawRect:(CGRect)rect中写入
self = [super initWithFrame:frame]; if (self) { [self drawRect:frame]; } return self;在调用的地方直接调用- (id)initWithFrame:(CGRect)frame即可。
?