Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open native Twitter App from my Application using IBAction

I'd like to implement the natvie Twitter App into my iOS Application. I've already done that with Facebook by using the URL Schemes. But I weren't able to find such thing for Twitter.

For Facebook I used:

-(IBAction)facebook:(id)sender {
       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://"]];
}

But when I try to use

@"Twitter" or @"twitter" or @"tw"

nothing happens. Would be great if you guys could help me out. I haven't found anything in the Interweb :/ If there is something just like it please :)

Thanks in advance :)

like image 793
Constantin Jacob Avatar asked Dec 02 '22 22:12

Constantin Jacob


1 Answers

Did you try:

twitter://

ex:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://user?screen_name=username"]];
like image 131
Blazer Avatar answered Dec 26 '22 13:12

Blazer