IOS 设置view背景图片

来源:互联网 发布:网络app开发公司 编辑:程序博客网 时间:2024/04/30 13:54

iOS 设置背景图片

代码

 UIImageView* imgView = [[UIImageViewalloc] initWithImage:[UIImageimageNamed:@"1(7).jpg"]];

    

    imgView.frame = self.view.bounds;

    imgView.autoresizingMask =UIViewAutoresizingFlexibleWidth;

    [self.viewinsertSubview:imgView atIndex:0];

0 0
原创粉丝点击