Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lionheart/lhstwitterfollowutility
A utility that allows your users to follow a specific twitter account.
https://github.com/lionheart/lhstwitterfollowutility
ios objective-c twitter
Last synced: 20 days ago
JSON representation
A utility that allows your users to follow a specific twitter account.
- Host: GitHub
- URL: https://github.com/lionheart/lhstwitterfollowutility
- Owner: lionheart
- License: apache-2.0
- Created: 2015-04-07T14:24:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-10T21:43:34.000Z (over 6 years ago)
- Last Synced: 2024-10-02T05:04:51.804Z (about 1 month ago)
- Topics: ios, objective-c, twitter
- Language: Objective-C
- Homepage: http://lionheartsw.com
- Size: 43.9 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LHSTwitterFollowUtility
=============================This utility gives you a quick and easy way to let users of your app follow a twitter account.
![image](http://i.imgur.com/NL0Fg5B.png)
Installation
------------CocoaPods is the recommended installation method. Just add this line to your Podfile.
pod 'LHSTwitterFollowUtility'
Usage
-----Integrating LHSTwitterFollowUtility into your project is pretty straightforward. Just import the header file, get the shared instance, and utilize the followScreenName method.
Here's a code snippet for utilizing this in a tableview:
```objc
#import
...
- (void)handleRowSelectionAtIndexPath:(NSIndexPath *)indexPath {
case TSSettingsSectionMisc:
switch ((TSSettingsMiscRowType)indexPath.row) {
case TSSettingsMiscFollowRow: {
UIView *view = [self.tableView cellForRowAtIndexPath:indexPath];
CGPoint point = view.center;
[[LHSTwitterFollowUtility sharedInstance] followScreenName:@"TweetSeekerApp"
point:point
view:view
callback:nil];
break;
}
case TSSettingsMiscSubscribeRow: {
break;
}case TSSettingsMiscFeedbackRow: {
break;
}
case TSSettingsMiscRateRow: {
break;
}
case TSSettingsMiscAppsRow: {
break;
}
}
break;
}...
```
The above implementation lets you be flexible in how your implementation of LHSTwitterFollowUtility. Feel free to implement it as you please!