instancetype
A method with a related result type can be declared by using the type instancetype as its result type. instancetype is a contextual keyword that is only permitted in the result type of an Objective-C method, e.g.
@interface A
+ (instancetype)constructAnA;
@end
Written by Samuel Mclaughlin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Clang
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#