How to add Twitter button to my iPhone app?

Develops an application for the iPhone. From my application, the user can to follow my twitter account . I want to add Follow twitter button in my app . When the user clicks the button, the user must keep track of my Twitter account. Before I used twitter api and twitter functionality , I try to do this. Can you please help me follow another Twitter user account from the application itself? Thanks in advance.

+7
source share
1 answer

Without connecting to another twitter application or anything, you might be able to open the URL for the job.

  - (IBAction)followMeOnTwitter:(id)sender { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/intent/user?screen_name=<twitter_screen_name>"]]; } 

Just replace the end of this URL with your twitter account name and it should open that account in a browser. Remember to connect your button to "followMeOnTwitter" by including it in your .h file. View

+10
source

All Articles