Code Monkey home page Code Monkey logo

Comments (3)

tianzhuo112 avatar tianzhuo112 commented on June 25, 2024

你好,正常情况下应该不会出现被遮盖的问题,你可以尝试把demo中的homeNav.navigationBarHidden = YES注释掉看一下效果。至于修改magicView的frame,其实就是修改magicController.view的frame,这和我们平时修改控制器view的frame是一样的逻辑。

from vtmagic.

Mingmingmew avatar Mingmingmew commented on June 25, 2024

不知道为什么我加了这句话就好了 self.magicView.headerHidden = NO;
不过现在出现了新的问题 我现在VTMagic里面放了4个UIViewController 里面各放着一个tableview 现在是这个情况,我如果按顺序滑动呢 这个4个控制器是可以正常运作的,但是当我直接点击VTMagic上面的按钮进行切换界面的时候,MJRefresh立刻报错了,我打印了一下 每当我点击上面按钮的时候代理方法都会遍历我4个控制器 (不知道是不是这个原因导致)。还有 如果用上面的按钮按顺序按也是不会出现这个错误的 但是如果跳着按就会出现这个错误(例如A直接跳到C)
错误信息如下:
qq20160701-1
我设置控制器的代码如下:
qq20160701-0

from vtmagic.

tianzhuo112 avatar tianzhuo112 commented on June 25, 2024

你好,这样的写法是有问题的,如果多切换几次,它会重复创建很多个控制器,内存会急剧增加。针对这种情况,你要么将每个页面用一个属性来保存,然后在viewControllerAtPage:直接返回对应的控制器;要么按照demo中的规范先调用dequeueReusablePageWithIdentifier:获取,没有的时候再创建。至于错误问题,请修改后验证,若仍然存在,请及时反馈。

from vtmagic.

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.