TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Keith Smiley.
A simple class for taking ADN posts and reformatting them to fit into Twitter's length restrictions, taking links into account.
Simply call:
+ (NSString *)formatTwitterStringWithString:(NSString *)string andURL:(NSURL *)url;
Passing the two parameters,
EX:
NSString *twitterText = [[KSADNTwitterFormatter shared] formatTwitterStringWithString:postText andURL:[NSURL URLWithString:[responseJSON valueForKeyPath:@"data.canonical_url"]]];
NOTE: Depending on your setup with ADN your canonical_url
key may not have the same path.
Submit any issues you find through Github and I'll do what I can to fix them.