UIImage *backgroundImage=[UIImage imageNamed:@"background.jpg"]; self.view.backgroundColor=[UIColor colorWithPatternImage:backgroundImage]; 宏:HUGE_VALF 可看做无穷大,起到循环动画的效果 注:Pattern 模仿,相似