Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Apple icons with iOS 6

Tags:

ios

icons

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 share a photo, now instead of an action sheet with buttons titled 'Message', 'Mail', etc., now there is a collection view of the icons for mail, messaging, facebook, twitter, etc.

For a 'share' action in my app I'd like to be able to present the same - because it looks better and would provide a consistent user experience. Is the use of these icons still not allowed, even if they are referring to (and would take the user to) the apps they originally belong to?

like image 905
j9suvak Avatar asked Sep 22 '12 18:09

j9suvak


People also ask

How do I get old iOS icons?

While it is not possible to change the app icons on iPhone without jailbreaking it, there's a trick using which you can get old app icons on your device. Using the web app Icon Rewind, you can easily switch to old app icons for popular apps like Twitter, Netflix, Instagram, Facebook, Google Maps, Uber, and more.


2 Answers

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.

like image 150
zpasternack Avatar answered Sep 20 '22 14:09

zpasternack


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.

like image 45
klcjr89 Avatar answered Sep 18 '22 14:09

klcjr89