http://stackoverflow.com/questions/2212778/why-i-can-support-zooming-a-uiscrollview-without-conforming-to-the-uiscrollviewde
UIScrollView 클래스에서 다음과 같이 setDelegate 메소드를 사용하면
[scrollView setDelegate:self];
'클래스 이름' does not implement the 'UIScrollViewDelegate' protocol 이란 warning 메시지가 나온다
이 경우 다음과 같이 바꿔주면 warning 메시지를 없앨 수 있다.
[scrollView setDelegate:(id<UIScrollViewDelegate>)self];
하지만, 아직 정확한 이유는 잘 모르겠다.
'개발 > Object C' 카테고리의 다른 글
Xcode에서 Grouped/Ungrouped 의 의미 (0) | 2010.09.05 |
---|---|
forward class and corresponding @interface may not exist warning (0) | 2010.08.23 |
setStatusBarHidden 사용시 Warning (0) | 2010.08.21 |
Xcode 단축키 (0) | 2010.08.21 |
보다 쉬운 Xcode Project Rename 방법 (0) | 2010.08.19 |