Tuesday, 15 June 2010

iphone - Passing parameters using url scheme -



iphone - Passing parameters using url scheme -

i working on app launched on url. have defined url scheme using xcode on info page. filled identifier bundle identifier , url schemes myapp.

now if seek open in safari myapp://foo, launches app , stops @ breakpoint in

- (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation

method.

problem annotation, url, application, sourceapplication parameters nil. can not pass parameters...

after unnecessary time loss, have found out, problem debugger. shows url nil , if seek print description says

printing description of url: <nil>

but if seek nslog shows url. , if set next code in method

if (! url) { homecoming no; }

the debugger shows url.

iphone ios cocoa-touch url-scheme

No comments:

Post a Comment