在UIViewController里面这样设置:
self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@
"1.jpg"
] ];