i've done this code to count the numbers of row in a db
int rows = 0;
if (sqlite3_open([[SqliteManager getDBPath] UTF8String], &database) == SQLITE_OK) {
const char *sql = "select count(*) from artheca";
sqlite3_stmt *countstmt;
if(sqlite3_prepare_v2(database, sql, -1, &countstmt, NULL) == SQLITE_OK) {
...
I've been browsing stack overflow and can't find a simple newbie-level explanation for this. I have the following behaviour. When the user clicks the search the index is removed and a cancel button appears next to the search bar. When cancel is pressed, the cancel button is removed and the index reappears.
Does anyone know a simple w...
Hi...
I want some useful UIWebkit tutorials and help link so that i could develop an application using UIWebkit....
Thanks in advance.
...
I noticed on Xcode 3.2.3 that of the three simulators available both the iPhone(water drops) and iPad(night sky) show background images. Is there a way to add a few photos to Photos so that I can set one as a backdrop.
NB: I tried dragging an image to Safari in the simulator and then clicking/holding and saving but the image does not sh...
Hello all!
I am new to iPhone development trying to figure out how to setup a one to many relationship Core Data. I have two Entities setup One Leagues which has a one to many relationship to an entity Teams. So lot's of teams in a league. Think all the teams that play baseball and are in the MLB.
I am pre-filling the data when the ...
hi,
I have created a simple app in iPhone related to local database using sqlite. Now i want to use
database from server to access sqlite-remote or sql-remote. But i could not get the perfect code to do this. So if any-one can help me to find that code by which I can connect with database from server, then please help me out.
Thanks
K...
How to I make a red number indicators without any number inside it ? Or anyone have any ideas that help user know if the App is running on background or not ?
Thanks for helping me
Tung Do
...
hi all,
Is there any via which we can identify the speech saved by the user at any time.what i want to do i want to save some user voices in the iphone and when user call any one sound iphone should react on that way i.e like if i say camera it would open the camera and if i say gallry it would open the photo gallery.
Is there any API ...
i am about to download sdk 4 for iphone development but on there website download is for snow leopard...Current version of my mac is Leopard 10.5.8... Wont i be able to install the sdk without upgrading to Snow leopard??
...
Hi,
I would like know the limit of maximum number of rows that can be shown in the UItableView. Thanks in advance.
...
I have an app with some animations which are called by timers. When one animation finishes then a timer is called to start another. If the iPhone sleeps and requires unlocking to activate it then the animations do not start. This is obviously because the timer ends whilst the app is asleep and then the function to restart an animation do...
i have uploaded a pdf file from resources and its not responding to the link present on pdf
help me out
thanks in advance
...
Are there any advanced iPhone Programming Books? I don't want an introduction in Objective C, Cocoa Touch or UIKit, but a comprehensive collection of best practices.
Thanks,
Henrik
...
Hello guys!
Here's my code for getting the pages from a pdf document and create a pdf document with each page:
- (void)getPages {
NSString *pathToPdfDoc = [[NSBundle mainBundle] pathForResource:@"security" ofType:@"pdf"];
NSURL *pdfUrl = [NSURL fileURLWithPath:pathToPdfDoc];
CGPDFDocumentRef document = CGPDFDocumentCreateWithURL((CFUR...
did apple change language code for china from 'zh' for iOS4?
I internationalized to six languages, now i have upgraded to IOS4 (and coding with sdk4), i test my application and all but chinese are working.
...
I am able to read the barocode but i am confused about how to get the food product value from the barcode value .
Do we need to call a webservice or create a database locally ...
help me out
thanks in advance
...
Hi,
I'm using the AQRecorder from SpeakHere application to record WAV audio file. Everything works well on simulator but on device I'm getting the warning in console:
"Error: couldn't get input channel count ('what')"
And the recorder does not start recording.
Thanks for help
...
I have an iphone app that uses table view as the interface. Each time that the user taps on one of the table cells, I want to show another window to the user. However the user interface of the window that I push into the navigation controller are extremely similar. Therefore I decided to make a "generic nib file" to be used across all th...
Is there a standard way to convert the localizable.strings file to csv format, or something else than can be imported by a spreadsheet program such as OpenOffice? Thanks.
...
how to compare textfield string with array string in iphone sdk?
please help me?
...