您的位置:首页 > 移动开发 > IOS开发

How to fill the background with image in landscape in IOS? 如何使image水平铺满屏幕

2014-04-15 16:58 513 查看
UIImageView *backgroundImage = [[UIImageView alloc] initWithFrame:self.view.frame];
[backgroundImage setImage:[UIImage imageNamed:@"spriteBG.png"]];
[backgroundImage setContentMode:UIViewContentModeTopLeft];
[self.view addSubview:backgroundImage];
[self.view sendSubviewToBack:backgroundImage];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐