How to get data from a .DBF file in iPhone - iphone

I need to get data from my database which is a .dbf file. Is it possible to fetch data from the same to the iPhone. How is it done? Please help needed.

I forked https://github.com/davbeck/DBF-Reader/ at https://github.com/woodnathan/DBF-Reader/ to make an iPhone compatible wrapper
There's a little bit of work to do, and I'll be continuing to update over the next few days/weeks to improve it, hopefully it will help you out in its current state

Related

How do I open a file in my IOS SwiftUI App?

I have an app that saves data in my Documents directory. It would be very useful to be able to mail the data file to some other users so they can also use the gathered information. I have spent most of today looking for a solution, but have not found any answers basic enough to be of any help. So, I would greatly appreciate some help to get me started. Like, what do I need to do to make IOS aware that I am interested in opening ( in my case actually only copying the file to the app’s Documents directory for further chewing) a file with, for example the .xyz-extension and how this is done.
Much appreciated,
stalle
Running on a real device, there seems to be no problem.

How to retrieve the data from the database using CoreData

I am learning core data concept and i want to use this in my simple app.
I have did the sample from the below link.
http://www.techotopia.com/index.php/An_iOS_4_iPhone_Core_Data_Tutorial_%28Xcode_4%29
i have did everything and followed the steps described in that link.
Generally i have added the data to tables(entity) and fetched the records using core data.
But my question is==> Once i closed(killed) the app from simulator (or) device means, the data stored in db also cleared. Next time when open that app again means, db will be empty.
In the above link also, this would be happened.
How to store data permanently in db(sqlite) using core data?
i want data(records) which i stored previous in that db. How to achieve it?
Please Help in this regards!!!
Thanks in advance.
Tutorial from raywenderlich would be a good start to learn for coredata... below is the link for the same...
http://www.raywenderlich.com/934/core-data-tutorial-getting-started
For your question : i want data(records) which i stored previous in that db. How to achieve it?
if you will delete the app either from device or simulator your database will be deleted. If you are testing on simulator and you have made db file in Resource bundle then everytime you run the project, Your database will be replaced by your database file in Project bundle..
please see clear yourself how project refers to db while running in simulator.

How to use Offline Cloudmade Maps in an iPhone App

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/.

How to use Core Data in saving all the details which were stored or displayed in a table view?

I am developing an app which parses an Xml or RSS feeds of a magazine..The thing is I have to include an offline capability,ie save the previous results which were displayed in each cell(similar to the New York times app) and then display the saved ones when there is no network connection..
Please help me with the codewise explanation using Core data as I was suggested to use it for this particular task.
Will be of great help for me..
Looking forward for your replies
Regards and Thanks
Arun
You probably want to start here.
OH Boy... CoreData.
Good bye 3-4 days of learning how this works. You wont regret learning about core data but there is a LOT.
#OhioDude has a great link. You can also.
1. Xcode > file > New Project. Select Navigation Based App, make sure the coredata checkbox is checked. Viola you have a project with all the core data templates.
2. There is other sample code on Apples website.
One of the tricky and cool things about core data is that you if you deploy a new version you have to write a template of how you app is to roll the data into the new structure.
During dev as I am changing the DB structure, I seem to get errors, so I just do a build>clean. And rename the string for the DB file to something new.
Good luck. Otherwise NSUserDefaults will be fine.
Or just learn about PLIST's you can simply serialize a NSDictionarly object into a PLIST and save it to the disk in a few lines of code. SUPER easy and no stuffing around with CoreData.

Exif and iPhone files

Im using a library for extracting EXIF data from google code.
I assume with iPhone OS 3 that you can use UIImagepicker to do it.
I just want to be able to extract the f-Stop, Shutter Speed and ISO data from the image.
I want to discard the image and just use the information that I store up.
Would I end up extracting the tag data in the viewcontroller.m or h?
This part of coding seems to baffle me a little bit and I cant figure out what to put where.
Can anyone help me out? I still havent figured out XCode all that well.
Whatever executable code you have needs to go in a .m (implementation) file, not a .h (header file). The headers are just for declaring things like classes, protocols, and methods, not for any real processing work.
Are there any tutorials that you know of that explain using exif step by step?
im using the one found here -
http://iphone-land.blogspot.com/2008/06/geo-tagging-images-using-iphone-exif.html
However, for a newbie like me, its not all that thorough because im coming up with errors and i am not sure how to resolve them.
I guess im just shy in all this. need a good place to start
You will likely have trouble getting access to an images metadata if you get it via UIImagePickerController, due to the issues described in this question: UIImagePickerController and extracting EXIF data from existing photos