i want to know how to run any method in background...i am making app that parse xml file from internet..the file is large..so it takes 20-25 seconds to parse it and show it in table view...the problem is that when i press the button to parse the file..the button remains pressed until the file is parsed..so upto 20 sec button remains pres...
How to validate phone number in objective c?
Please help
...
HI all
i am using
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[tableview reloadData];////not working
}
but my table is not reloading.but when i put
[tableview reloadData];
in viewdidload, my data didnt show up.
BUt on rerunning the app, whole data shown up...
i m confused ,what is happeneing he...
I have a UIPickerView with 2 components.
And I have 2 Core Data entities, where one has a relationship one-to-many to the second one.
I've implemented this 4 delegate functions:
- numberOfComponentsInPicker
- numberOfRowsInComponent
- titleForRow:forComponent
- didSelectRow:inComponent
where the last one is as:
- (void)pickerView:(U...
I have added MFMailComposeViewController to my application. In the MFMailComposeViewController
there is a button at the top of left side name Cancel.When i click the cancel button it shows an UIActionSheet with three option (save/delete/cancel).
My doubt is when i click the delete draft button it cancel the MFMailComposeViewController.T...
Hi
is there any way to release rootViewController in UInavigationController and set new view Controller as a root View Controller ???
...
I am doing xml parser on iphone.
example xml is
<root>
<child att="attributename">
</child>
</root>
another xml is
<root>
<child att="attributename" />
</root>
i am using this method for end element.
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI qualifiedName:(...
I am trying to control/override the auto-complete feature when a user enters text in my iPhone app.
Specifically I'd like to auto-complete a collection of words I supply. For example let's say a word in my list is Macpapajona. When I type "mac" auto-complete will suggest Macpapajona.
How can I do this?
I understand that I have to use ...
i want to access user location using core location frameworks but don't show message to user that "allow to access your location" which ask at staring of application.
is there any way to hide this messge of core location frameworks.
thanks in advance.
...
In my application i added google maps application.It works fine.But in the map UI there is button zoomin and zoomout and also current location button, i want to hide or remove this button is this possible? i have load google map application in my UIWebview using this url @"http://maps.google.com/maps?q=3711.
Can anyone help me ?
Thanks...
I have no experience at all with OpenGL and just started playing around with iPhone development. From google, it seems that iphone uses a special type of opengl (openGL ES). What are the languages that is supported by openGL ES? I know a little bit of C++ but by now i believe my C and Objective-C is better than C++.
...
Hi,
I've been trying to setup a cache manifest for an iPhone WEB Application. I have included:
<html manifest="speed.manifest">
However, something isn't working. I have configured easyPhp to deliver manifest with the mime.types file and also added AddType text/cache-manifest .manifest to the httpd.conf to try this also. It unfortunate...
I need to guarantee that the same thread performs various actions at arbitrary times. First the thread needs to initialize a library, then I want the thread to sleep until work needs to be done and upon user input, I need to be able to pass selectors or blocks for execution.
How can I setup an NSRunLoop to sleep after initialization? Af...
What's the best way to implement a pan-able zoomable game map with Cocos2d for iPhone. It would be like Mobile Safari except with a game map that doesn't fit completely on screen. Or like how it's done with Angry Birds, Cut the rope, etc.
This would not be a side scrolling game, just a fixed game area that you can zoom in/out of.
I'm n...
I am using Reachability sample code from Apple site. I have added Reachability.h and Reachability.m files to my project, also I have added SystemConfiguration.framework. Added #import "Reachability.h" to my view controller .m file and declared reachability variable in my view controller .h file. Everything compiles without errors until I...
I need to change a single boolean value in a property list upon installation of a package (it is dependent on a system setting that is not configurable through a GUI). How can I edit a property list with a command in a post-install script in dpkg on iPhone?
...
Hi,
I want to detect the touch (CGPoint) of a scroll view in its content size .If i detect the touch in the scroll i get the CGPoint only with reference to the scroll view frame but i want the position with reference to content size.
Here is my code
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch* t;
NSLog(@"...
I dealt with orientation by register as an observer, and rotate the navigationController's view to the desired orientation. But some view controllers deal with orientation changes by the following methods.
Responding to View Rotation Events
willRotateToInterfaceOrientation:duration:
willAnimateRotationToInterfaceOrientation:duration:
...
First at all sorry for my bad english,
My app works fine in Simulator 3.1 and 3.2, but when run in 3.0 always throw this exception:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x4e, ....
I found this related question: http://sta...
I have a UINavigationController controlling a stack of UIViewControllers. When I push a certain UITableViewController onto the stack, I find that the top row of its UITableView is hidden behind the UINavigationBar.
This problem only happens on the iPad, not the iPhone. I am using the same stack on both.
Also it only happens on one of m...