Instance Property


Returns the extension context of the view controller.


@property(nonatomic, readonly, strong) NSExtensionContext *extensionContext;


The view controller can check this property to see if it participates in an extension request. If no extension context is set for the current view controller, the system walks up the view controller hierarchy to find a parent view controller that has a non nil extensionContext value.