NSString *backgroudpath = [[NSBundle mainBundle] pathForResource:@"backgroud" ofType:@"png"]; UIImage *backgroudImage = [UIImage imageWithContentsOfFile:backgroudpath]; self.view.backgroundColor=[UIColor colorWithPatternImage:backgroudImage] ;
NSString *backgroudpath = [[NSBundle mainBundle] pathForResource:@"backgroud" ofType:@"png"]; UIImage *backgroudImage = [UIImage imageWithContentsOfFile:backgroudpath]; self.view.backgroundColor=[UIColor colorWithPatternImage:backgroudImage] ;
转载于:https://www.cnblogs.com/babyBoBo/archive/2013/05/30/3107835.html