hidesBottombarWhenPushed的副作用

本文介绍了一种手动隐藏应用程序中TabBar的方法,这对于优化用户体验和界面布局具有一定帮助。
minemainviewcontroller中的详情跳转是这样的: func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView .deselectRow(at: indexPath, animated: false) let mineItem = currentMineItems[indexPath.section][indexPath.row] let mineItemIdentifier = mineItem[dictionaryIdentifier] as! String if let tag = mineItem["tag"] as? String { EventManager.shared.record(.click, viewTag: tag, at: self) } switch mineItemIdentifier { case accountItemIdentifier: if appContext.isLogin { EventManager.shared.record(.click, viewTag: "UserID", at: self) performSegue(withIdentifier: jumpToAccountDataSegueID, sender: nil) } case aboutItemIdentifier: performSegue(withIdentifier: jumpToAboutSegueID, sender: nil) case thirdPartyItemIdentifier: if appContext.isLogin { let vc = VoiceAssistantMainViewController() navigationController?.pushViewController(vc, animated: true) } else { self.loginButtonDidClicked() } case albumItemIdentifier: let albumVC = LocalAlbumViewController.create()! albumVC.hidesBottomBarWhenPushed = true self.navigationController?.pushViewController(albumVC, animated: true) case officialMallItemIdentifier: let storyboard = UIStoryboard.init(name: accountManagerStoryboardName, bundle: nil) let websiteViewController = storyboard.instantiateViewController(withIdentifier: websiteViewControllerIdentifier) as! WebsiteViewController websiteViewController.urlString = socialMallLinkUrl websiteViewController.hidesBottomBarWhenPushed = true navigationController!.pushViewController(websiteViewController, animated: true) 应该怎么具体改
09-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值