2014년 1월 15일 수요일

이미지 패턴으로 컬러값 지정

[UIColor colorWithPatternImage:[UIImage imageNamed:@"이미지 이름"];


example)
//배경을 bh_sand.png 파일로 설정 하기
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_sand"]];

댓글 없음:

댓글 쓰기