Using Apple icons with iOS 6

后端 未结 3 1010
北荒
北荒 2020-12-24 10:00

With the release of iOS 6 I\'d like to revisit the original question here: Access to Apple's built in Icons?

For example, when you hit the \'action\' button to s

相关标签:
3条回答
  • 2020-12-24 10:35

    For just showing the share UI with icons, you probably want UIActivityViewController.

    NSString* someText = self.textView.text;
    NSArray* dataToShare = @[someText];  // ...or whatever pieces of data you want to share.
    
    UIActivityViewController* activityViewController = 
            [[UIActivityViewController alloc] initWithActivityItems:dataToShare 
            applicationActivities:nil];
    [self presentViewController:activityViewController animated:YES completion:^{}];
    

    It looks like:

    Screenshot of sharing UI in iOS6

    Documentation here.

    0 讨论(0)
  • 2020-12-24 10:42

    The problem with using UIActivity for sending mail is that you cannot set the subject field's text, recipients, etc. like you can with MFMailComposeViewController

    I've been trying to do a workaround to set the subject field, but have not found a solution yet.

    0 讨论(0)
  • 2020-12-24 10:56

    UIActivity class provides built-in activity types for mail, messaging, ...

    0 讨论(0)
提交回复
热议问题