首页 > 移动平台 > 详细

IOS 设置View背景色

时间:2015-06-25 15:22:09      阅读:136      评论:0      收藏:0      [点我收藏+]

    UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"01首页.png"]];

    

    imgView.frame = self.view.bounds;

    

    imgView.autoresizingMask = UIViewAutoresizingFlexibleWidth;

    

    [self.view insertSubview:imgView atIndex:0];

 

或者在viewDidload使用

   self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImageimageNamed imageNamed:@"instrument_bg"]];

IOS 设置View背景色

原文:http://www.cnblogs.com/ajqfju/p/4600029.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!