RootViewController *objYourViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
CATransition* transition = [CATransition animation];
transition.duration = 1.0;
transition.type = kCATransitionPush;
transition.subtype = kCATransitionPush;
[self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
[self.navigationController pushViewController:objYourViewController animated:YES];
This is used to point the current location. Now i want to get the current location detail in textfield or tableview so please help me if any one know.
i had use bellow code..
First Add
MKReverseGeocoderDelegate
in.h
file..after create object of
MKReverseGeocoder
in.h
file like belolow..and then use it like bellow on your
UIButton
Action eventand this bellow methods are delegate methods of
MKReverseGeocoder
Also See this link with example but its another code.. above is my custom code... how-to-get-current-latitude-and-longitude-in-iphone/
i hope this is helpful to you..