Comments (3)
你好,正常情况下应该不会出现被遮盖的问题,你可以尝试把demo中的homeNav.navigationBarHidden = YES注释掉看一下效果。至于修改magicView的frame,其实就是修改magicController.view的frame,这和我们平时修改控制器view的frame是一样的逻辑。
from vtmagic.
不知道为什么我加了这句话就好了 self.magicView.headerHidden = NO;
不过现在出现了新的问题 我现在VTMagic里面放了4个UIViewController 里面各放着一个tableview 现在是这个情况,我如果按顺序滑动呢 这个4个控制器是可以正常运作的,但是当我直接点击VTMagic上面的按钮进行切换界面的时候,MJRefresh立刻报错了,我打印了一下 每当我点击上面按钮的时候代理方法都会遍历我4个控制器 (不知道是不是这个原因导致)。还有 如果用上面的按钮按顺序按也是不会出现这个错误的 但是如果跳着按就会出现这个错误(例如A直接跳到C)
错误信息如下:
我设置控制器的代码如下:
from vtmagic.
你好,这样的写法是有问题的,如果多切换几次,它会重复创建很多个控制器,内存会急剧增加。针对这种情况,你要么将每个页面用一个属性来保存,然后在viewControllerAtPage:直接返回对应的控制器;要么按照demo中的规范先调用dequeueReusablePageWithIdentifier:获取,没有的时候再创建。至于错误问题,请修改后验证,若仍然存在,请及时反馈。
from vtmagic.
Related Issues (20)
- pod 'VTMagic', '~> 1.2.4' 但是不适配iPhone X HOT 2
- 第一个menu可以固定在左侧吗?
- 当有三个子视图控制器的时候,preloading=yes,发生pageIndex错乱,导致崩溃
- iPhone X leftNavigatoinItem and rightNavigatoinItem HOT 6
- item之间的竖向分割线如何实现 HOT 1
- VTMagic.m Assigning instance variable to itself
- menubar里选中的Item的字体大小变化
- 能不能竖向滑动? HOT 1
- Request for swift version
- 用MLeaksFinder检测出内存泄漏,如下图
- navigationInset 不起作用,有遇到的朋友吗?
- 怎么设置item的选中和非选中时的backgroundColor
- 滑动监听
- Xcode 11.3 UITableView:Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy HOT 2
- VTMagic与hidesBarsOnSwipe冲突
- 在 VTMagic 控制器中 修改 navigationBar 的 BarTintColor 无效 HOT 1
- VTSwitchEventScroll时不会resetMenuItemColor,可能造成Item的颜色不对。
- 你好,请问能不能改变navigationView的位置,使他悬浮在中间?这样的话改变他的透明度可以看到子控制器的UI
- 气泡模式自定义问题
- VTMagicController生命周期 统计问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtmagic.