2010.12.01 21:23
이미지 뒤집기를 할 때 UIImageView를 이용할 수 있다면, 매우 쉽게 해결할 수 있다.
UIImage* artworkImage = [UIImage imageNamed:imageUrl];
[artworkReversedView setImage:artworkImage];
artworkReversedView.transform = CGAffineTransformMakeScale(1, -1);
위의 경우는 수평으로 뒤집기 (horizontal)
CGAffineTransformMakeScale의 두 상수값을 조절하여 뒤집는 방향을 조절할 수 있다.
'Programming > iPhoneDev KB' 카테고리의 다른 글
Status bar의 색깔 변경하기 (code 상에서) (0) | 2010.12.01 |
---|---|
UIImageView를뒤집기 (flip) (0) | 2010.12.01 |
Keyboard 숨기기 (0) | 2010.11.25 |
NSString Object를 이용한 memory management 기법 확인 (0) | 2008.12.18 |
XCode 3.1에서 Google Project Hosting (SVN) 이용하기 - 4. XCode에서 사용하기 (5) | 2008.12.11 |
XCode 3.1에서 Google Project Hosting (SVN) 이용하기 - 3. SVN에 소스코드 Import하기 (2) | 2008.12.11 |