Giter VIP home page Giter VIP logo

Comments (9)

VeeruPV avatar VeeruPV commented on August 18, 2024

Any suggestions on this one? I can't get the statusbar taps to work at all. I was looking at another controller viewDeck, it seems to work fine,but i kinda like ZUUIRC and i really hope somebody can point me in the right direction.

from pkrevealcontroller.

sammio2 avatar sammio2 commented on August 18, 2024

I am having the same issue, on anything using the UIUserInterfaceIdiomPhone the code

[tableview setScrollsToTop:YES]

has no affect. You cannot tap the status bar to scroll to the top, but on the UIUserInterfaceIdiomPad it works just fine, presumably this is because the iPad has built in support for multiple scroll views.

from pkrevealcontroller.

blurboy1985 avatar blurboy1985 commented on August 18, 2024

I also encounter this issue. Any solutions guys?

from pkrevealcontroller.

VeeruPV avatar VeeruPV commented on August 18, 2024

Yeah probably iPad is okay because it has built-in support for multiple scroll views. I wonder how viewdeck solved this

from pkrevealcontroller.

giannisp avatar giannisp commented on August 18, 2024

Had the same problem, what worked for me was to put self.tableView.scrollsToTop = YES; on viewDidLoad of the frontViewController and self.tableView.scrollsToTop = NO; on viewDidLoad of the rearViewController.

from pkrevealcontroller.

VeeruPV avatar VeeruPV commented on August 18, 2024

Hi giannisp, I can vouch that worked for me and possibly the correct solution. Thanks for pointing it out.

from pkrevealcontroller.

nullfox avatar nullfox commented on August 18, 2024

On iOS when the UIViewController containg a UITableView is inside of a UINavigationController setting tableView.scrollsToTop = YES doesnt fix the issue. To be clear my layout is...

ZUUIRevealController FrontViewController -> UINavigationController RootViewController -> UITableViewController

My RearViewController does not contain a UITableView or implement any of the UITableViewDelegates

The only way I can get it to work is if I click a button on my RearViewController that pushes back to my front view controller which leads me to believe it has nothing to do with the contents of the RearViewController but rather something with ZUUIRevealController itself

Edit: Other folks had issues with UITableView not working and setting [self.tableView setBounces:YES] seems to have fixed it, even though UITableView in the Nib is set to bounce already

from pkrevealcontroller.

dmishe avatar dmishe commented on August 18, 2024

I just had this issue because both rear and front VCs had tableviews in them. I had to disable scrolls to top on rear view to fix it.

But I wonder what is the correct way to do this. Shouldn't rear VC remove itself and its view from the hierarchy when hidden?

from pkrevealcontroller.

ShengHuaWu avatar ShengHuaWu commented on August 18, 2024

Had encountered this issue. giannisp's solution is worked for me. Put "scrollsToTop" inside the ZUUIRevealControllerDelegate method. Let this property changing as the rear view is revealed or hidden. Thanks giannisp!

from pkrevealcontroller.

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.