views:

133

answers:

1

Hi there, I'm developing an iPhone app that needs a web login. As usual I call

[[UIApplication sharedApplication] openURL:loginURL];

This close the app and calls the login page inside Safari. Once logged, the app is opened once again using a callback address and the iPhone URL registration feature.

The question here is:

Since the app is closed when I call Safari, the debug stops. How can I continue the debug?

Thanks

+1  A: 

You can, however, get XCode to connect to an application the next time it's launched. You bring up the inspector on your executable and check the "Wait for next launch/push notification" box. This is explained in more detail here.

The other alternative would be to use a UIWebView inside your app rather than switching to Safari.

Stephen Darlington