I’ve not been capable of finding easy methods to change the deprecated SLServiceTypeTwitter
to compose a tweet – it nonetheless works in iOS 16.4, surprisingly:
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"aTweet"];
[tweetSheet addURL:[NSURL URLWithString:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"aURL"]]];
[self presentViewController:tweetSheet animated:YES completion:nil];
I learn the Twitter Developer Phrases and it seems their API prices cash now. Nonetheless, this nonetheless works in my iOS app – so I’m confused.
I discovered a TwitterAPIKit utilizing Swift. Has anybody used it? Does that help the identical function because the code above? If that’s the case, can somebody share an instance?