Using Apple icons with iOS 6

后端 未结 3 1015
北荒
北荒 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.

提交回复
热议问题