Giter VIP home page Giter VIP logo

Comments (2)

pkluz avatar pkluz commented on August 18, 2024

Of course you can do that but that's not something library-dependent. In your own RearViewController.xib file simply squeeze the tableView to suit your needs and provide a matching background (because if your finger pans further than the edge it reveals a few more pixels before it snaps back.)

Easiest way is to simply have your RearViewController.xib made up of a a UIView which contains a UITableView (which is say,...set to 80% of the UIView's with). Thus your container is a UIViewController which conforms to UITableViewDelegate/DataSource protocols and not a UITableViewController directly although that's possible as well.

If you REALLY wish to alter the entire behavior of the Controller you can in fact do that like this:

  1. Open ZUUIRevealController.m and go to the viewDidLoad: method.
  2. Adjust this line: self.rearView = [[[UIView alloc] initWithFrame:self.view.bounds] autorelease]; with a frame that suits your needs.

Although I do not recommend this.

from pkrevealcontroller.

kerrishotts avatar kerrishotts commented on August 18, 2024

This /works/, not sure how well it would be looked upon, however:

in your -viewDidUnload method:
CGRect newFrame = self.navigationController.view.frame;
newFrame.size.width = 320; // whatever width you want
self.navigationController.view.frame = newFrame;

The same issue applies here, that if you make it too narrow, you can see through to the window background when you slide it a few pixels beyond the width of the controller.

/If/ you do this, be sure to make the navigationController's view not autoresizable for the width. Otherwise /very/ funny things happen when orientations change.

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.