1 // 设置背景2 // 使用平铺方式设置背景图片3 self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageWithNamed:@"timeline_retweet_background"]];
1 - (void)drawRect:(CGRect)rect {2 [[UIImage imageWithNamed:@"timeline_retweet_background"] drawInRect:self.bounds];3 }
1 // 设置背景图片2 [self setImage:[UIImage imageWithNamed:@"timeline_retweet_background"]];3 [self setHighlightedImage:[UIImage imageWithNamed:@"timeline_retweet_background_highlighted"]];
新闻热点
疑难解答