2

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

Oscar Peli
  • 1,108
  • 2
  • 11
  • 18

1 Answers1

2

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.

Community
  • 1
  • 1
Stephen Darlington
  • 51,577
  • 12
  • 107
  • 152