출처: 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 moves the requirement down closer to where the information is useful.
결국 import 잘못하면 그렇게 된다는 얘기
'개발 > Object C' 카테고리의 다른 글
Simple Path Example (0) | 2010.09.06 |
---|---|
Xcode에서 Grouped/Ungrouped 의 의미 (0) | 2010.09.05 |
UIScrollView에서 setDelegate를 사용했을 경우 warning (0) | 2010.08.21 |
setStatusBarHidden 사용시 Warning (0) | 2010.08.21 |
Xcode 단축키 (0) | 2010.08.21 |