iphone

SQLite count(*) how to get the result?

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) { ...

How to resize the search bar so that the index doesn't overlap

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

UIWebkit tutorials and help

Hi... I want some useful UIWebkit tutorials and help link so that i could develop an application using UIWebkit.... Thanks in advance. ...

Iphone 4 Simulator, Set Background Image?

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

Setting up a one to many relationship in Core Data on the iPhone.

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

code - access remote sqlite from server +iphone-xcode

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

applicationIconBadgeNumber - How to display with empty value ?

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

Speech recognition in iphone sdk ?

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

iphone sdk 4 available only for snow leopard??

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

maximum number of rows that can be shown on tableview

Hi, I would like know the limit of maximum number of rows that can be shown in the UItableView. Thanks in advance. ...

iPhone App: How do I call a function after my iPhone has been to sleep?

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

how to go to a url present on link on pdf in iphone??

i have uploaded a pdf file from resources and its not responding to the link present on pdf help me out thanks in advance ...

Advanced iPhone Programming Books

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

PDF pages with quartz

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?

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

how to get food product data from barcode

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

iPhone SpeakHere recorder issue

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

How to create multiple windows with the same nib file in xcode

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

Convert localizable.strings to spreadsheet?

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

how to compare textfield string with array string in iphone sdk? please help me? ...