iphone - Multi-language documents (RTF) in iOS : Files, SQLite, Core Data ? How? -


i'm making first ios app, , i'm facing first (little) issue.

the app classical ios ui experience : mean, table views, tab bar, push controllers etc. displaying documents (from rtf files existing), audio , video files.

my rtfs have mixed languages, supported ios, think it's important isn't ?

considering audio , video stored in sandbox documents directory, i'm not sure rtf.

i want reactive, on every devices, idea store rtfs in core data entity (using binary type) , getting in application nsattributedstring can respond initwithrtf message.

i guess after i'll have load uiwebview ? or displaying nsattributedstring textview preserve it's formatting ?

but don't know how ship application core data pre-filled database.

so here questions :

  • is idea store rtfs in core data ? faster simple uiwebview load rtf file documents folder directly ? maybe sqlite better case ?
  • how pre-fill database application ?
  • any specific consideration multiple languages rtfs ? (latin , non latin languages same file exemple).

thanks lot ! bye.

getting in application nsattributedstring can respond initwithrtf message.

that won't work. -initwithrtf:documentattributes: available on os x. convert rtf file nsattributedstring on ios requires manual parsing of file @ moment (let's hope changes ios 5).

i guess after i'll have load uiwebview ? or displaying nsattributedstring textview preserve it's formatting ?

uiwebview can't display nsattributedstrings. neither can uitextview. have use core text functions draw text yourself. or use html beginning , display text in web view.

is idea store rtfs in core data ? faster simple uiwebview load rtf file documents folder directly ? maybe sqlite better case ?

what's wrong plain files? first option because seems simplest. shouldn't worry optimizing if don't know if needs optimizing @ all. since can store arbitrary binary data core data or plain sqlite, it's possible.

how pre-fill database application ?

just include core data datastore file in app's bundle. if database needs written to, code needs copy file bundle app's documents directory on first launch.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -