Noorse Lijster 19

Living in the Dutch mountains

Flower

Posts Tagged ‘ShareKit’

Using ShareKit For Twitter Sharing Only

Example iOS project for iOS using both ShareKit to share a tweet from your application preceeded by a fixed hashtag. The example is using xAuth authentication which requires approval from Twitter.

Steps to create the project:

  1. Download the lastest version of ShareKit
  2. Create a project based on the Windows template
  3. Add the ShareKit folder to your project
  4. Add the ShareKit button to the navigation bar and add the code to UIViewController for ShareKit (See example code)
  5. Modify the Twitter section of the SHKConfig.h file. Depending on using oAuth or xAuth you need to make different changes
  6. Modify the application section of the SHKConfig.h file. I did configure #define SHKMyAppName @”Verkeersles” and #define SHKMyAppURL @”http://www.noorselijster19.com”, you should use your own settings
  7. To see the standard behaviour build and run the project
  8. Modify the SHKActionSheet.m file to remove the standard MORE button from the UIActionSheet and the related behaviour
  9. Modify the SHK.m file to change the accepted types of sharing for text (SHKShareTypeText) e.g. only allow Twitter sharing
  10. I did remove the Tumblr mail option from the SHKSharers.plist

Now build and run the project

Download the example for TwitterWithHashTags here…