1. Use NSLog for each step.
2. Set a breakpoint new NSString *urlAddress = @"
http://www.google.com"; and check the variables and function returns. In may cases you can check everything in Mac OS X application. The change is simple AppKit instead of UIKit.