It looks as if you want to display a mapView in a modal view.
Up vote 1 down vote favorite share g+ share fb share tw.
Please help me with this this is really erratic I am unable to add a button to navigation bar of modalview UINavigationController *tempModalVC=UINavigationController alloc init; tempModalVC. NavigationBar setBarStyle:UIBarStyleBlack; //UIBarButtonItem *tempDoneBTN=UIBarButtonItem alloc initWithTitle:@"Done" style:UIBarButtonItemStylePlain target:self action:@selector(hideModalView:); UIBarButtonItem *tempDoneBTN=UIBarButtonItem alloc initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(hideModalView:); tempModalVC. NavigationItem setBackBarButtonItem:tempDoneBTN; tempModalVC.
NavigationItem setTitle:@"Title"; tempModalVC.navigationItem. BackBarButtonItem. Enabled=YES ; //tempModalVC.
NavigationBar setRightBarButtonItem:UIBarButtonItem alloc initWithTitle:@"" style:UIBarButtonItemStyleBordered target:self action:@selector(hideModalView:); //tempModalVC. NavigationItem setRightBarButtonItem:UIBarButtonItem alloc initWithTitle:@"" style:UIBarButtonItemStyleBordered target:self action:@selector(hideModalView:); tempDoneBTN release; tempModalVC. View addSubview:mapView; tempModalVC.
ModalPresentationStyle = UIModalPresentationFormSheet; Please help me with this I have tried almost every permutation combination. Thnx in advance iphone uinavigationcontroller modalviewcontroller link|improve this question asked Jun 3 '11 at 15:11Ankit Sachan92511042 93% accept rate.
It looks as if you want to display a mapView in a modal view. On iPhone, modal views occupy the entire screen, so there is no room for a nav bar. Thus you do not need a navigation controller.
I assume the above code is inside a UIViewController instance. If so, just do this: self presentModalViewController:mapView animated:YES/NO; In this case, in your your mapView controller, you should add a button that, when pressed does this: self dismissModalViewControllerAnimated:YES/NO.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.