colorWithPatternImage 非常占用内存,而且在swift中去掉了这个方法。
sizeView.layer.contents = UIImage(named:"slect_bg")!.CGImage