Giter Club home page Giter Club logo

Comments (8)

Kejiasir avatar Kejiasir commented on June 19, 2024 1

刚好写了个重现 #53 bug 的 demo,里面有涉及到导航栏的隐藏显示,你看看这部分逻辑跟你的需求场景符不符合,可以参考下。
TestDemo.zip

from hwpanmodal.

HeathWang avatar HeathWang commented on June 19, 2024

请提供更详细的代码,包含隐藏,show 导航栏操作。

from hwpanmodal.

miaojia avatar miaojia commented on June 19, 2024

前面aVC隐藏导航栏代码
-(void)viewWillAppear:(BOOL)animated{

[super viewWillAppear:animated];
self.navigationController.navigationBar.hidden=YES;

}
-(void)viewDidAppear:(BOOL)animated{

[super viewDidAppear:animated];
self.navigationController.navigationBar.hidden=YES;

}

-(void)viewWillDisappear:(BOOL)animated{
[super viewWillAppear:animated];

self.navigationController.navigationBar.hidden=NO;

}
push需要模态操作的bVC
-(void)viewWillAppear:(BOOL)animated{

[super viewWillAppear:animated];
self.navigationController.navigationBar.hidden=NO;

}

-(void)viewDidAppear:(BOOL)animated{

[super viewDidAppear:animated];
self.navigationController.navigationBar.hidden=NO;

}
bVC中按钮点击、弹出模态
MJMineGiftListViewController *list=[[MJMineGiftListViewController alloc]init];
[self presentPanModal:list];
list中接口请求成功后,操作[list dismissViewControllerAnimated:NO completion:nil];
隐藏的导航栏出现

from hwpanmodal.

yzm347404 avatar yzm347404 commented on June 19, 2024

确实会,今天我也遇到了,不过我把self.navigationController.navigationBar.hidden=YES;放到viewdidload就好了,可能业务不一样哈,希望对你有用

from hwpanmodal.

HeathWang avatar HeathWang commented on June 19, 2024

@miaojia
框架内部调用的也是present操作,你可以试试present出来一个VC,然后调用dissViewControllerAnimated,看看有没有nav bar跳动的问题。

from hwpanmodal.

miaojia avatar miaojia commented on June 19, 2024

from hwpanmodal.

HeathWang avatar HeathWang commented on June 19, 2024

我的意思是你看你正常present一个controller,然后dismiss,会不会有这个现象

from hwpanmodal.

HeathWang avatar HeathWang commented on June 19, 2024

@miaojia 你的问题解决没

from hwpanmodal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.