今天在网上看了一篇讲Objective-C关键字的文章,发现自己有一些关键字几乎没有用过,因此在此写文记录一下学习心得。
关于Objective-C中的关键字,在Steffen Itterheim的一篇博文中有不错的讲解,在Objective-C2.0中有一下关键字:
@class
@defs
@protocol @required @optional @end
@interface @public @package @protected @private @property @end
@implementation @synthesize @dynamic @end
@throw @try @catch @finally
@synchronized @autoreleasepool
@selector @encode
@compatibility_alias
@”