Conforming to protocol

suggest change

You can add protocols to standard classes to extends their functionality:

@protocol EncodableToString <NSObject>
- (NSString *)toString;
@end

@interface NSDictionary (XYZExtended) <EncodableToString>
@end

@implementation NSDictionary (XYZExtended)
- (NSString *)toString {
    return self.description;
}
@end

where XYZ your project’s prefix

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents