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


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

ios6 ios

zztdan 11 years ago

尝试:

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

lectror answered 11 years ago

Your Answer