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...
What is the easiest way to write content of a dictionary into a file. Sample code will be really helpful.
...
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...
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...
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
...
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...
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.
...
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
...
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?
...
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...
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
...
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.
...
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...
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...
...
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
...
here is a good question
but I just wonder the difference between "bundle display name" and "bundle name" in cocoa application's info plist.
...
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...
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.
...
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'...
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...