Skip to content

MVFollow is a simple drop-in solution that allows you to follow people on Twitter natively.

License

Notifications You must be signed in to change notification settings

converted2mac/MVFollow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVFollow

MVFollow is a simple drop-in solution that allows you to follow people on Twitter natively.

This library requires iOS 6 or later.

Installation

CocoaPods

MVDribbbleKit is available via CocoaPods. Simply add this to your Podfile: pod 'MVFollow', '~> 0.2.0' and install it with pod install. Boom!

Without CocoaPods

Download the latest version, add the MVFollow folder to your project and import it.

Usage

This project provides three methods: One method to follow someone on Twitter, a second method to show Twitter profiles in installed clients (like Tweetbot, Twitterrific or the official client), and a third to check the user's device for those installed clients (Using URL schemes).

The 3 methods are VERY easy to use and pretty self explanatory. There's also an example project included. Take a look at it!

- (void)followUser:(NSString *)username withCompletion:(void (^)(BOOL success, NSError *error))completion;
- (void)openProfile:(NSString *)username inClient:(TwitterClient)twitterClient;
- (void)checkIfClientisInstalled:(TwitterClient)twitterClient;

When using checkIfClientisInstalled, you may use the isClientInstalled boolean to specify cases. For example:

MVFollow *followLib = [[MVFollow alloc] init];
	if (clientLib.isClientInstalled == YES) {
		// DO SOMETHING
	} else {
		// DO SOMETHING AGAIN
}

If you use CocoaPods you can simply add pod 'MVFollow' to your podfile.

Clients Available

Currently, MVFollow supports the official Twitter.app, Tweetbot, Twitterrific, Tweetings, and the web client (twitter.com) which is opened by Safari.

To specify a certain client to use in your method, simply replace "TwitterClient" with "TwitterClientTweetbot" or whatever client you are looking to use.

Notes

Multiple user account support is a little janky at the moment. If the user has more than one Twitter account saved on their phone, MVFollow automatically selects the most used account. This is going to work a lot better soon.

License

MVFollow is available under the MIT license. See the LICENSE file for more information.

About

MVFollow is a simple drop-in solution that allows you to follow people on Twitter natively.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.8%
  • Ruby 3.2%