iphone - imported app data via email - I can't access the data -


i have configured iphone app able import , export data via email. far able export files extension .qm2 (this own extension configured in app plist) , import files. data i'm using export nsdata. working fine unable populate array when data imported in. method chose import follows in appdelegate:

- (bool)application:(uiapplication *)application handleopenurl:(nsurl *)url {  nsstring *urlstring = [url absolutestring]; nsdata *datareceived = [nsdata datawithcontentsoffile:urlstring]; nsarray *newarray = [nskeyedunarchiver unarchiveobjectwithdata:datareceived];   nslog(@"%@",newarray);  // logs out null; return yes; } 

the data there because if nslog urlstring prints our following: urlstring = file://localhost/private/var/mobile/applications/a3615b4e-388f-4986-acd0-b564dbb7d265/documents/inbox/test%201-16.qmf. again problem how imported data , put in nsarray?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -