For those of you having trouble of creating NSURL with a NSString, this may be the reason. If you have a new line character at the end of your string this will not be printed if you use NSLog for debugging. Hence, you will have hard time to realize that there is something wrong. So if any in any case you may have a new line at the end of your string NSURL will add it to your URL and it will not be opened by safari. Therefore, you need to remove it.
No comments:
Post a Comment