navigationcontroller

IOS7 navigatinBar tintColor change in popover

核能气质少年 提交于 2019-11-30 19:28:20
I developed iPad application. I'm opening some screens in popover with navigation controller. But I did not change navigationcontroller tint color in IOS 7. How can I change this color. thanx UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:airportsSearch] autorelease]; navigationController.navigationBar.barTintColor = [UIColor blackColor]; navigationController.navigationBar.translucent = NO; self.popOver=[[UIPopoverController alloc] initWithContentViewController:navigationController]; self.popOver.delegate = self; [self.popOver

Calling popToRootViewControllerAnimated after dismissModalViewControllerAnimated

ぃ、小莉子 提交于 2019-11-30 04:52:30
问题 I am working application in which i calling presentModalViewController and once finished(calling dismissModalViewControllerAnimated:YES ) it should immediately call popToRootViewControllerAnimated . But the issue is dismissModalViewControllerAnimated:YES is working properly but popToRootViewControllerAnimated is not working after it. The code is shown below: [self.navigationController dismissModalViewControllerAnimated:YES] ; [self.navigationController popToRootViewControllerAnimated:YES];

IOS7 navigatinBar tintColor change in popover

安稳与你 提交于 2019-11-30 03:19:12
问题 I developed iPad application. I'm opening some screens in popover with navigation controller. But I did not change navigationcontroller tint color in IOS 7. How can I change this color. thanx UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:airportsSearch] autorelease]; navigationController.navigationBar.barTintColor = [UIColor blackColor]; navigationController.navigationBar.translucent = NO; self.popOver=[[UIPopoverController alloc]

How can I remove a view from navigation controller

狂风中的少年 提交于 2019-11-28 21:35:43
I want to call a new view controller and remove the current view controller from the navigation controller stack. For example. I am in view controller A and I call B. Now I have in the stack A , B. Now I want to call C (from B). I want the stack to be A, C. Thanks. JohnK In the context of ARC, here's a possible solution: NSMutableArray* navArray = [[NSMutableArray alloc] initWithArray:self.navigationController.viewControllers]; [navArray replaceObjectAtIndex:[navArray count]-1 withObject:nextViewController]; [self.navigationController setViewControllers:navArray animated:YES]; As you can tell,

How to use shared element transitions in Navigation Controller

孤人 提交于 2019-11-28 21:10:03
I would like to add a shared elements transition using the navigation architecture components, when navigating to an other fragment. But I have no idea how. Also in the documentations there is nothing about it. Can someone help me? I took reference from this github sample https://github.com/serbelga/android_navigation_shared_elements cardView.setOnClickListener{ val extras = FragmentNavigatorExtras( imageView to "imageView" ) findNavController().navigate(R.id.detailAction, null, null, extras) } override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)

Disable rotation for View Controller in Navigation Controller

一世执手 提交于 2019-11-28 04:21:48
问题 First of all, this isn't a duplicate. I've looked at all of the questions related to this on SO and none of them work for me. Hopefully it's just because I'm new to iOS development but I suspect this isn't possible in my case. I've attached a picture with the view controller circled that I want to disable rotation for. I've already tried: Subclassing the view controller that I want to disable rotation for and using the shouldAutoRotate method by setting it to NO. Apparently this doesn't work

self.navigationController is null

爱⌒轻易说出口 提交于 2019-11-27 23:45:03
问题 in my viewcontroller,I have a button,when press the button,entry the navigationController,my code like: -(IBAction)ShangHaiButtonPressed:(id)sender{ marketviewcontroller = [[MarketViewController alloc]initWithNibName:@"MarketViewController" bundle:nil]; NSLog(@"%@",self.navigationController); [self.navigationController pushViewController:marketviewcontroller animated:YES]; [marketviewcontroller release]; } but I can see the self.navigationController is null,how to solve this problem?thank you

How can I remove a view from navigation controller

℡╲_俬逩灬. 提交于 2019-11-27 21:03:12
问题 I want to call a new view controller and remove the current view controller from the navigation controller stack. For example. I am in view controller A and I call B. Now I have in the stack A , B. Now I want to call C (from B). I want the stack to be A, C. Thanks. 回答1: In the context of ARC, here's a possible solution: NSMutableArray* navArray = [[NSMutableArray alloc] initWithArray:self.navigationController.viewControllers]; [navArray replaceObjectAtIndex:[navArray count]-1 withObject

Xcode 4.2 creating navigation based application

佐手、 提交于 2019-11-27 13:39:18
I just tried to create navigation based application via xcode 4.2 and all I found in the new window have nothing to do with navigation based application .. I found page based application which is the nearest thing to the navigation based application but it created with the story board which I can't handle yet.. So is there a way to create the good old nav based app? and if not what the alternatives? For Navigation only application, you have to chose single view application first. This will give only a view based application without navigationcontroller. All you have to do is select the

How to use shared element transitions in Navigation Controller

旧街凉风 提交于 2019-11-27 13:31:18
问题 I would like to add a shared elements transition using the navigation architecture components, when navigating to an other fragment. But I have no idea how. Also in the documentations there is nothing about it. Can someone help me? 回答1: I took reference from this github sample https://github.com/serbelga/android_navigation_shared_elements cardView.setOnClickListener{ val extras = FragmentNavigatorExtras( imageView to "imageView" ) findNavController().navigate(R.id.detailAction, null, null,