I found many solutions above title. but It is written in a objective-c like that:
objView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background_image"]];
but in swift it can be written like that:
objView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background_image"]];
but in swift it can be written like that:
objView.backgroundColor = UIColor(patternImage: UIImage(named: "background_image")!)
댓글 없음:
댓글 쓰기