很简单,就是一句话,就可以搞定: view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageWithContentsOfFile:path]];