草庐IT

NavigationController

全部标签

ios - 恢复默认导航栏外观

我正在为iPhone制作一个iOS应用程序,并且我正在使用一个导航Controller。在导航过程中的某个时刻,我将UISegmentedControl添加到ViewController,就在导航Controller的导航栏下方。我在导航栏中插入新的背景和阴影图像,使UISegmentedControl显示为导航栏的一部分。我这样做://navbarcolorimageletrect=CGRectMake(0,0,view.frame.width,0.5)//UsedinnavBar,sizedosn'tmatterUIGraphicsBeginImageContextWithOpti

ios - 恢复默认导航栏外观

我正在为iPhone制作一个iOS应用程序,并且我正在使用一个导航Controller。在导航过程中的某个时刻,我将UISegmentedControl添加到ViewController,就在导航Controller的导航栏下方。我在导航栏中插入新的背景和阴影图像,使UISegmentedControl显示为导航栏的一部分。我这样做://navbarcolorimageletrect=CGRectMake(0,0,view.frame.width,0.5)//UsedinnavBar,sizedosn'tmatterUIGraphicsBeginImageContextWithOpti

ios - EXC_BREAKPOINT UNKNOWN 在 "0"行崩溃

我在Crashlytics报告中遇到了这个奇怪的崩溃,我不确定发生了什么。我什至不知道行号“0”是什么意思。有任何想法吗?didSelect方法的代码:functableView(tableView:UITableView,didSelectRowAtIndexPathindexPath:NSIndexPath){switchindexPath.section{case1:letvc=WTShowDetailVC()vc.show=bottomFeaturedShows[indexPath.row].shownavigationController?.pushViewControlle

ios - EXC_BREAKPOINT UNKNOWN 在 "0"行崩溃

我在Crashlytics报告中遇到了这个奇怪的崩溃,我不确定发生了什么。我什至不知道行号“0”是什么意思。有任何想法吗?didSelect方法的代码:functableView(tableView:UITableView,didSelectRowAtIndexPathindexPath:NSIndexPath){switchindexPath.section{case1:letvc=WTShowDetailVC()vc.show=bottomFeaturedShows[indexPath.row].shownavigationController?.pushViewControlle

ios - 当滑回根 viewController 时,大导航栏背景会变得清晰

我已经使用了largeNavigationBar并且在我滑回RootViewController并且大型导航以令人讨厌的方式获得清晰颜色之前一切正常。这是代码:funclargeNavigationTitle(){self.navigationController?.view.backgroundColor=VVUtility.navigationBarColor()letproductTitle=request?.product?.nameself.navigationItem.title="\(productTitle??"")".localized()self.navigatio

ios - 当滑回根 viewController 时,大导航栏背景会变得清晰

我已经使用了largeNavigationBar并且在我滑回RootViewController并且大型导航以令人讨厌的方式获得清晰颜色之前一切正常。这是代码:funclargeNavigationTitle(){self.navigationController?.view.backgroundColor=VVUtility.navigationBarColor()letproductTitle=request?.product?.nameself.navigationItem.title="\(productTitle??"")".localized()self.navigatio

ios - 如何仅在一个 View Controller 中使 UINavigationController 透明?

我只想让NavigationBar在一个ViewController中透明。但是,在单个ViewController中更改NavigationBar后,整个navigationController变得透明,并在几秒钟后崩溃。这是我的代码块:overridefuncviewWillAppear(animated:Bool){self.navigationController!.navigationBar.setBackgroundImage(UIImage(),forBarMetrics:UIBarMetrics.Default)self.navigationController?.na

ios - 如何仅在一个 View Controller 中使 UINavigationController 透明?

我只想让NavigationBar在一个ViewController中透明。但是,在单个ViewController中更改NavigationBar后,整个navigationController变得透明,并在几秒钟后崩溃。这是我的代码块:overridefuncviewWillAppear(animated:Bool){self.navigationController!.navigationBar.setBackgroundImage(UIImage(),forBarMetrics:UIBarMetrics.Default)self.navigationController?.na

ios - 在 CollectionView 中滚动 tableView 时隐藏 NavigationBar?

我有collectionViewController和collectionViewCell包括TableView。CollectionView是水平布局。我想在滚动tableView时隐藏导航栏。有什么想法吗? 最佳答案 从iOS8开始你可以直接使用self.navigationController?.hidesBarsOnSwipe=true这当然需要您的ViewController嵌入到NavigationController中。NavigationController的所有子VC都将继承此行为,因此您可能希望在viewWill

ios - 在 CollectionView 中滚动 tableView 时隐藏 NavigationBar?

我有collectionViewController和collectionViewCell包括TableView。CollectionView是水平布局。我想在滚动tableView时隐藏导航栏。有什么想法吗? 最佳答案 从iOS8开始你可以直接使用self.navigationController?.hidesBarsOnSwipe=true这当然需要您的ViewController嵌入到NavigationController中。NavigationController的所有子VC都将继承此行为,因此您可能希望在viewWill