iPhone NSURL String/HTML Local App Resource Accessed in Another Application -


using iphone sdk: 3.0 (firmware 3.1.2)

i'm new iphone development , researched here , google few hours no luck. here's issue:

i have ebook in epub format want sell on app store, app store requirement epub must contained in iphone app. so, decided make app installs ebook stanza or other number of iphone ebook readers.

so, first method used using nsurl (with stanza protocol) pointed epub that's hosted on website, e.g. (stanza://www.myebooks.gov/mybook.epub). worked fine , loaded epub stanza. however...

to minimize risk of having book pirated, i'd include epub resource in application , pass resource stanza or other ebook reader that's compatible via local url pointed @ filesystem (e.g. stanza://var/mobile/applications/guid/*.app/ebook.epub) or other method.

i've tried loading uiwebview, telling load local resource (e.g. stalking.html) , inside html file having *.epub linked , wasn't working either. i've tried "../" without , multiple variations see if worked.

i've tried: nsstring *resourcepath = [[nsbundle mainbundle] pathforresource:@"ebooktitle" oftype:@"epub"]; resourcepath = [nsstring stringwithformat:@"stanza://%@", resourcepath]; nsurl *resourceurl = [nsurl urlwithstring:resourcepath];

[webview loadhtmlstring:resourcepath baseurl:resourceurl];

it opens stanza, stanza shows path "var/mobile/applications/..." instead of "/var/mobile/applications/..." didn't know if issue or if whole thing fails based on permissions/security/etc.

it seems possible somehow, have doubts because of sandboxing , other security features i'm unaware of.

thanks, can help. :)

you cannot access resources of iphone application. security sandboxing of iphone os.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -