CJMTwitterFollowButton 0.1.0

CJMTwitterFollowButton 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total1,029
Week0
Month0

Installs

Apps25
Test Targets4
powered by Segment

GitHub

Stars34
Watchers5
Forks9
Issues2
Contributors2
Pull Requests0

Code

Files2
LOCLines of Code 79


  • By
  • Chris Maddern

Follow Me Button for iOS

A UIButton subclass which mimics the Twitter follow button and will open the profile of the configured user on whatever Twitter App is currently installed (native Twitter app preferred if installed).

Usage

The CJMTwitterFollowButton can be created in Interface Builder by adding a UIButton and changing it's class to CJMTwitterFollowButton or in code using the initialiser:

CJMTwitterFollowButton *button = [[CJMTwitterFollowButton alloc] initWithOrigin:CGPointMake(135, 125)
                                                                 twitterAccount:@"chrismaddern"
                                                                        andSize:CJMButtonSizeSmall];

Credits

This is basically several others' work pulled together to create a simple-to-include repo.

Hi-Res Follow Me button created by Joseph DiPaolo: http://www.illustrated-primer.com/blog/2011/06/19/twitter-follow-buttons/

Non-Twitter App Schemes from the Gist Repo: https:gist.github.com/958738 Created by vhbit

Thanks to HandleOpenURL for documenting the Twitter iOS5 Scheme http:handleopenurl.com/scheme/twitter

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Licensed under the MIT License.