Objective C @Class 지시어 썸네일형 리스트형 Objective C @Class 지시어 예제 따라하기 - @Class 지시어를 이용한 간단한 예제이다.- 소스코드#import @interface XYPoint : NSObject { int x; int y; } @property int x,y; -(void) setX: (int) xVal andY: (int) yVal; @end #import "XYPoint.h" @implementation XYPoint @synthesize x,y; -(void) setX: (int) xVal andY: (int) yVal{ x = xVal; y = yVal; } @end #import @class XYPoint; @interface Rectangle : NSObject{ int width; int height; XYPoint *origin; } @property in.. 더보기 이전 1 다음