ios - 执行 popViewController 时导航栏闪烁黑色
<p><p>我的应用需要反向弹出动画。它的部署目标是 <code>IOS 7</code> 而已。</p>
<p>所以,我已经实现了<a href="https://github.com/travisjeffery/TRVSNavigationControllerTransition" rel="noreferrer noopener nofollow">TRVSNavigationControllerTransition</a>接口(interface)。</p>
<p>我有默认的半透明导航栏。
它成功弹出,但在动画时闪烁黑色。</p>
<p>我附上了实际显示方式的图片。</p>
<p>任何帮助表示赞赏。</p>
<p>谢谢,
巴津加。 <img src="/image/cn2MO.png" alt="enter image description here"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>好的,下面是我用来管理这种情况的解决方案。</p>
<p>反向推<code>(即从左到右)</code></p>
<pre><code>CATransition *transition = ;
transition.duration = 0.3;
transition.timingFunction = ;
transition.type = kCATransitionFromLeft;
;
transition.subtype = kCATransitionFromLeft;
transition.delegate = self;
;
self.navigationController.navigationBarHidden = NO;
;
</code></pre>
<p>And , To Pop in reverse <code>(即从右到左)</code></p>
<pre><code>CATransition *transition = ;
transition.duration = 0.3;
transition.timingFunction = ;
transition.type = kCATransitionFromRight;
;
transition.subtype = kCATransitionFromRight;
transition.delegate = self;
;
self.navigationController.navigationBarHidden = NO;
;
</code></pre></p>
<p style="font-size: 20px;">关于ios - 执行 popViewController 时导航栏闪烁黑色,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/20521245/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/20521245/
</a>
</p>
页:
[1]