iphone

Bulk Insert to Sqlite3 causing Db Error: Library routine called out of sequence

I need to load some configuration data after app updates for my iphone app. I bundle in a file with a bunch of SQL statements (800+) to run on first launch. It looks like I may be painted in a corner now. If I run it on the main thread at startup, it take so long to run that the app crashes due to the startup taking too long. If I ru...

Writing dictionary contents in a file

What is the easiest way to write content of a dictionary into a file. Sample code will be really helpful. ...

memory leak in Xml Parser inside connectionDidFinishLoading

hi friends.. i got the memory leak in following code segment when i ran my app with instrument.. -(void)connectionDidFinishLoading:conn{ //[self.conn release]; NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:myData]; [xmlParser setDelegate:self]; [xmlParser parse]; [xmlParser release]; } but i couldnt make out exactly wher...

appearing white shade while the view transitions? iwant to remove it

i used the following code for swap between views..bute there appears a white shade ..how can i remove the white shade? help me CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.8]; //[animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType: kCAT...

Wanted to display badge No. over tool bar item or button.

Hi All, In my application i have a uibutton (having message image as its background image) placed over the tool bar. Now as new message appears i want to show a badge with number of new messages as we do in application icon or tabbar icon. Please let me know if this is possible or any work around for the same. Thnx in advance. Amit ...

crash in internal UIView(CALayerDelegate) actionForLayer

I have an inconsistent crash inside this internal selector. The exception is EXC_BAD_ACCESS, so something has been corrupted. The crash is hard to reproduce, and once it occurs, is not debuggable as the UIView that acts as the receiver can not be inspected. Does anyone have any suggestions for how to debug this crash? I can't even te...

Finding the path of resource folder?

Is there any way (programmatically) that i can find the location of "Resource" folder. I want to create a new file in it at run time. ...

How to upload the file to server in iphone sdk

Hi i want to send a file to server in iphone .there is any iphone api to implement that functionality . please reply me as soon as thanks Pooja Rusia iphone Developer ...

UITabelView, detail view empty first time I mark a row

I have an diary app, based on UITableView and CoreData, all works just fine but there is one little tim thing that is strange. When I recompile the app and mark a row to see the details, the detail view is empty, if I go back and click the again it is populated as it should be. What is wrong here? ...

Why is dealloc for my class not being called?

I have a view controller. The view controller has a retained object called streamController, which is an NSObject subclass that handles all of the data I/O with my server. All is well, except I'm trying to figure out why some things are leaking on said streamController. I drop an NSLog in there and I never see it firing. I'm complete...

UIScrollView redrawing content while scrolling?

I know there is a property or method that makes the scrollview/uiview call drawRect: method while is scrolling. By default is disabled because of performance reasons but I need to enable it. I cannot remember the name of the method hence I cannot look for it, anyone who knows what I am looking for? Thanks in advance ...

Cllocation stops update when movement has stopped

After switching to SDK4 Cllocation updates behave strange. Before, the delegate was calles twice or sometimes even 3 times a second if the signal was good. It didn't matter if we were moving or if the movement stopped. Now, the delegate stops to be called as soon as the movement stops. There might be one or two more calls but thats it. ...

Best practice to identify an UIImageView in a NSMutableArray?

I am going to addObject of 8 UIImageView * to a NSMutableArray. Each UIImageView is User Interaction Enabled. When a user touches one of the UIImageViews, what is the best way to recall the index position of the selected UIImageView' in theNSMutableArray`? I can imagine: sub-class UIImageView and add a NSUInteger index attribute t...

How to read/write data in background using NSFileHandle

Hi, Can anyone (with example code) please tell me how to support reading/writing of data in background using NSFileHandle. Also, how to open a socket between communicating parties? Thanks in advance... ...

Audio only HTTP Live streaming with ffmpeg and segmenter(on linux server)

Hi Can anyone help me with setting up http live streaming on linux server. I am working on an music app and want to stream audio content to iPhone. We have mp3 files on our server. Thanks Saurabh ...

what's the difference between "bundle display name" and "bundle name" in cocoa application's info plist

here is a good question but I just wonder the difference between "bundle display name" and "bundle name" in cocoa application's info plist. ...

performance problem with WebKit which gets 50.000 POIs via webservice

Hi, I've got a lot of POIs (compare MKAnnotation Protocol) in a backend on a webserver. I don't want to have a complete dump of all those in an iPhone database since normally you only need the POIs around your area. So my idea was a webservice which gets the actual shown region as paramters and gives back all relevant POIs. So far so goo...

How do I ignore the action of appearence of actionSheet when holding down a link for a seconds in UIWebView

I have noticed that the app "Reeder" is using the UIWebView but ignores this event. it displays a custom view instead of the original UIActionSheet view. ...

Saving objects as favourites using Core Data and XML parsing

I am working on a project where the app parses data from an XML file, saves it to a persistent store and populates a table view. Every time the app opens, if there is internet connection available, the persistent store gets recycled and the XML is parsed again as it gets updated quite frequently. If no internet connection is available I'...

Problem with the camera

Hi @ll I am currently developing an app which is using the UIImagePickerController for taking pictures with the build in camera. What I no want to do, is to provide the user a switch on bottom bar of the UIImagePickerController to be able to switch between the front and the rear camera (if available of course). I know how it's possible...