ios 设置完背景图片,但是背景图片不可以完全显示?


UIImage* bgImg = [UIImage imageNamed:@"login_bg.png"];
   self.view.backgroundColor = [UIColor colorWithPatternImage:bgImg];

ios6 ios

zztdan 10 years, 11 months ago

尝试:

 [self.view addSubview:[UIImageView alloc] initWithImage:bjImg]]

lectror answered 10 years, 11 months ago

Your Answer