IOS 平铺图片

2017-06-28  本文已影响26人  透支未来
UIImage *bgImg = [UIImage imageNamed:@"图集背景@2x_33"];
    UIColor *color = [[UIColor alloc] initWithPatternImage:bgImg];
    UIView *bg = [[UIView alloc] initWithFrame:self.view.frame];
    [bg setBackgroundColor:color];
    [self.view addSubview:bg];
上一篇 下一篇

猜你喜欢

热点阅读