Multiple strings in openURL. iPhone SDK
Posted
by user354779
on Stack Overflow
See other posts from Stack Overflow
or by user354779
Published on 2010-05-31T17:40:19Z
Indexed on
2010/05/31
17:43 UTC
Read the original article
Hit count: 349
Hello, I am making a twitter application for iPhone, I am trying to add a button which will open Safari, and take the user to their twitter homepage. I have a textfield called username, so the following code does not work, hopefully someone will be able to help me out.
-(IBAction)viewAccount { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.twitter.com/", username.text]];
}
Any help is appreciated! Thank you!
© Stack Overflow or respective owner