Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Library Allows Easy Customized UIActivity Messages For Each Sharing Platform

  •  
  •  
  •  
  •  
  •  

UIActivity is a great way to promote sharing app content, and here’s a library from Wayne Hartman that allows you to easily customize  those shared messages for each platform.  You can easily create e-mails with attachments and custom message text, and send a different message using the other sharing platforms.

As the readme states:

UIActivity is an awesome API for sharing content with built-in iOS services. It’s really easy to share via email and text message with the built-in activities, but for one really fatal flaw: Apple’s API doesn’t allow for customizing content specific to the built-in activities. Take MFMailComposeViewController: incredibly useful, except that there’s no API for setting the subject and adding attachments. Lame. Another example: The text you put on there for a Tweet might be different from the text you put into a text message. But there’s no API to be able to specify special text for the text message. Lame.

Here’s a couple of snapshots from the included showing the example application in action with a customized mail message:

WHMessageActivities-1WHMessageActivities-2

You can find WHMessageActivities on Github here.

A nice easy way to customize messages shared using UIActivity.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments