ShareViewController.m 986 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ShareViewController.m
  3. // ShareSupport
  4. //
  5. // Created by HonorLee on 16/1/13.
  6. // Copyright © 2016年 HonorLee. All rights reserved.
  7. //
  8. #import "ShareViewController.h"
  9. @interface ShareViewController ()
  10. @end
  11. @implementation ShareViewController
  12. - (BOOL)isContentValid {
  13. // Do validation of contentText and/or NSExtensionContext attachments here
  14. return YES;
  15. }
  16. - (void)didSelectPost {
  17. // This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
  18. // Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
  19. [self.extensionContext completeRequestReturningItems:@[] completionHandler:nil];
  20. }
  21. - (NSArray *)configurationItems {
  22. // To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
  23. return @[];
  24. }
  25. @end