Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS 8 Extensions

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

iOS 8 Extensions

Quick intro into iOS 8 extensions.

Avatar for Thomas Eichmann

Thomas Eichmann

August 19, 2014
Tweet

Other Decks in Programming

Transcript

  1. data$exchange NSExtensionContext @property(readonly, copy, nonatomic) NSArray *inputItems NSExtensionItem @property(copy, nonatomic)

    NSArray *attachments NSItemProvider @property(copy, readonly, nonatomic) NSArray *registeredTypeIdentifiers - (void)loadItemForTypeIdentifier:(NSString *)typeIdentifier options:(NSDictionary *)options completionHandler:(NSItemProviderCompletionHandler)completionHandler typedef void (^NSItemProviderCompletionHandler)(id <NSSecureCoding> item, NSError *error);
  2. complex(ac*va*on(rules((predicate) {extensionItems = ({ attachments = ({ registeredTypeIdentifiers = (

    "com.adobe.pdf", "public.file-url"); }); })} SUBQUERY(extensionItems, $extensionItem, SUBQUERY($extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf").@count == 1).@count == 1