Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it L'avatar di Alberto
    Registrato dal
    Oct 2004
    Messaggi
    1,870

    [OBJ-C] iPhone e SQLite

    Sto tentando di interagire da iPhone con un db SQLite, ma sto avendo più difficoltà del previsto.

    Quello che cerco di fare e di creare il db incluso nella applicazione e di leggere e scrivere dati al suo interno, qualcuno che ha già affrontato l'argomento saprebbe indicarmi su come muovermi?

  2. #2
    Utente di HTML.it L'avatar di netarrow
    Registrato dal
    Apr 2004
    Messaggi
    1,425
    nel developer center sotto sample code c'è un esempio proprio su questo, lo hai già visto?.
    Imparare è un'esperienza, tutto il resto è solo informazione. (Albert Einstein)

  3. #3
    Utente di HTML.it L'avatar di Alberto
    Registrato dal
    Oct 2004
    Messaggi
    1,870
    Originariamente inviato da netarrow
    nel developer center sotto sample code c'è un esempio proprio su questo, lo hai già visto?.
    Si ho guardato, ma non avevo trovato nulla...ho ricontrollato ora, ma continuo a non vederlo

  4. #4
    Utente di HTML.it L'avatar di netarrow
    Registrato dal
    Apr 2004
    Messaggi
    1,425
    SQLiteBooks era il nome, effetivamente ora non lo vedo neanche io.
    però ho ancora la cartella qua

    Nelle FAQ cmq ho trovato questo:

    How do I write to an SQLite database?

    You would write to an SQLite database as you would on other platforms. The main constraint is that you must choose a suitable location for your database (see "How do I write information locally?"). See the SQLiteBooks sample code for more information.

    How do I bundle an SQLite database with my application?

    Add the existing database file to your Xcode project as you would any other resource file, by dragging it to the "Resources" group in the project's Files view. When prompted, make sure you add the file to the appropriate Target (if your project has more than one). Xcode copies the file into the application bundle when you build your project.

    This is all you need to do if your database is meant to be read-only.

    If you need to write to your SQLite database, you will need to copy it to one of the directories in your application sandbox, such as Documents, when your application launches.
    Cmq io ho ancora la cartella alla peggio, però qui non posso allegarla.
    Imparare è un'esperienza, tutto il resto è solo informazione. (Albert Einstein)

  5. #5

  6. #6
    Utente di HTML.it L'avatar di netarrow
    Registrato dal
    Apr 2004
    Messaggi
    1,425
    come soluzione ho pensato a rapidshare:
    http://rapidshare.com/files/25689956...Books.zip.html
    Imparare è un'esperienza, tutto il resto è solo informazione. (Albert Einstein)

  7. #7

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.