摘要: Tester.h#import <Foundation/Foundation.h>@interface Tester : NSObject { }-(void) test:(NSString*) msg;-(void) notImp;@endTester.m#import "Tester.h"@implementation Tester-(void) test:(NSString*) msg{ NSLog(@"%@", msg);}@end注意:没有实现notImp方法main.m#import <Foundation/Foundati 阅读全文
posted @ 2011-04-21 09:50 chenjunbiao 阅读(12131) 评论(2) 推荐(0) 编辑
摘要: Tester.h#import <Foundation/Foundation.h>@interface Tester : NSObject { }-(void) Test:(NSString*) msg;@endTester.m#import "Tester.h"@implementation Tester-(void) Test:(NSString*) msg{ NSLog(@"%@", msg); }@endmain.m#import <Foundation/Foundation.h>#import "Tester. 阅读全文
posted @ 2011-04-21 09:37 chenjunbiao 阅读(495) 评论(0) 推荐(0) 编辑