UIColor colorWithPatternImage代码片段(背景平铺)

self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];

self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Checkers.png"]];

posted @ 2012-06-27 13:23  暗夜精灵nightelf  阅读(1080)  评论(0编辑  收藏  举报