- NSString *textURL = @"http://www.CodeSnippet.Cn/";
- NSURL *cleanURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@", textURL]];
- [[UIApplication sharedApplication] openURL:cleanURL];
- //该片段来自于http://www.codesnippet.cn/detail/101220137920.html
来源: http://www.codesnippet.cn/detail/101220137920.html