Last Updated: February 25, 2016
·
1.213K
· samuelmclaughli

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

(via http://clang.llvm.org/docs/LanguageExtensions.html)