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:
- Download the lastest version of ShareKit
- Create a project based on the Windows template
- Add the ShareKit folder to your project
- Add the ShareKit button to the navigation bar and add the code to UIViewController for ShareKit (See example code)
- Modify the Twitter section of the SHKConfig.h file. Depending on using oAuth or xAuth you need to make different changes
- 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
- To see the standard behaviour build and run the project
- Modify the SHKActionSheet.m file to remove the standard MORE button from the UIActionSheet and the related behaviour
- Modify the SHK.m file to change the accepted types of sharing for text (SHKShareTypeText) e.g. only allow Twitter sharing
- I did remove the Tumblr mail option from the SHKSharers.plist
Now build and run the project
Download the example for TwitterWithHashTags here…