I am trying some DB based apps in iphone.I used this sample as a guide and it works nice.When I start a new project,no data is displayed.When checked I found that the sqlite file is not available in the library folder.
I checked the DBpath but its right.What's gone wrong ?Please help me..
Follow the link
You need to set the path for the sqlite3.h file my using
#import "/usr/include/sqlite3.h"
Hope this will help you out :)
Related
Actually, I’ve read somewhere that keeping images as bundle would be the proper way to prevent it from being copied from .ipa file. So, I would like to know how to make bundles for images. Please help me out.
There's some good advice regarding creating and accessing an asset bundle in the answers to this question.
hi folks i am parsing a xml file using NSXmlParser class.i am sending path exactly and i can able to see the parsing in my simulator upto now i got what i expected.Now i installed the same code and same data of(xml file) into the device and again i checked the data its working well.
My Problem:After disconnecting the the device from my xcode again i am trying to parse the data same as above this time it is not working.
MyQuestion: I know simulator is case in sensitive and device(ipad) is case sensitive so while i installed through the xcode then its working even in the device but after disconnecting it is not working.can any one please give me your idea about this situation.I cross checked with all the code there is no problem.Your suggestion is more important for me.Thanks in advance.
Check if your xml file is copied into bundle resources. Goto 'Targets' select/right-click your target and expand 'Copy Bundle Resources', if your file is not there, +/drag-drop it. Hope it works :)
I want to read Dbx file In my App from The Following site.
http://www.weather.gov/geodata/catalog/wsom/data/bp03my11.dbx
How i can do This??Any suggestion or any Sample Source Code
Thanks in advance.
With best regards
Search Iphone development Framework for your work.use nsdictionary to separate different identities
I’ve looked through the posts on the Cloudmade site here and I get some of it, but not all. I've posted the question below, but haven't had the help I need, so I thought I'd ask the question here.
I can see that I need to:
download the tiles for the required area to my Mac (but can’t see how to do this)
convert these to a sqlite database using the map2sqlite utility, changing the code to output the tiles to a table called “ZCACHE”, not “tiles”
Copy the DB to the Application Bundle
insert some code to copy this DB on first run, from the Application Bundle to the Documents Directory
Somehow get App to use this DB and not an online one – I can’t see how that’s done.
Any help would be warmly welcomed,
Chris.
The best solution for me to have iPhone offline maps is:
1.- Generate your own maps with TileMill and then export to MBTiles format.
2.- Get the mbtiles-ios-example and use the MBTiles file you just generated. In order to compile it, you need to download Route-Me and add it to the project.
Now, there is another option (not for free): Mapbox.
please check this tutorial, it can help - http://www.gisnotes.com/wordpress/category/sqlite3/.
I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder.
I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast.
I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform.
(I felt like I should just be able to do a system call to "tar -zxvf myfile.tar.gz", but it would appear it's not that easy!)
So is there a simple way to just un-tar a file on the iPhone? Or am I going about this all wrong, and is there a better way to do this?
Thanks in advance!
Nik
This blog post should help you:
http://blog.hawkey.org/?p=332
EDIT: Google cache version of the same page which actually links to a forum post here which links to a Google Code project here, containing some code which implements unzipping on iOS.
Here is a light untar library for iOS : https://github.com/mhausherr/Light-Untar-for-iOS
Complete blog post about the solution : http://blog.octo.com/en/untar-on-ios-the-pragmatic-way/
Hope this helps,
Vincent
I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:
http://github.com/davepeck/iOS-libarchive/