본문 바로가기

전체 글201

forward class and corresponding @interface may not exist warning 출처: http://stackoverflow.com/questions/322597/objective-c-class-vs-import you see this warning: warning: receiver 'myCoolClass' is a forward class and corresponding @interface may not exist you need to #import the file, but you can do that in your implementation file (.m), and use the @class declaration in your header file. @class does not (usually) remove the need to #import files, it just move.. 2010. 8. 23.
UIScrollView에서 setDelegate를 사용했을 경우 warning 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)self]; 하지만, 아직 정확한 이유는 잘 모르겠다. 2010. 8. 21.
setStatusBarHidden 사용시 Warning 참조: http://stackoverflow.com/questions/3028255/about-setstatusbarhidden 상태바를 없애기 위해서 [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; 문장을 사용하면 다음과 같은 warning이 나오는데 warning: 'setStatusBarHidden:animated:' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplicat.. 2010. 8. 21.
Xcode 단축키 Leopard 용 http://cocoasamurai.blogspot.com/2008/02/complete-xcode-keyboard-shortcut-list.html Snow Leopard용 http://cocoasamurai.blogspot.com/2009/08/xcode-shortcuts-updated-for-xcode-32-on.html\ 2010. 8. 21.