Comments (2)
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:
- Open ZUUIRevealController.m and go to the
viewDidLoad:
method. - 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.
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)
- Limit the pan gesture in the main view
- PKRevealController doesn't play well with unwind segues
- UIScreenEdgePanGestureRecognizer instead of UIPanGestureRecognizer
- LeftView and CenterView Controller both vertical scrollable
- Show left or right UIViewController programmatically. HOT 1
- revealController:willChangeToState firing too late
- It will flash in the first time HOT 1
- leftBarButtonItem
- How to do ajustment of leftview to statusbar in IOS8?
- Disable pan gesture on front VC when showing VCs from side HOT 1
- Difference to UISplitViewController HOT 1
- Panning doesn't work HOT 1
- Create new tag v2.0.7 for CocoaPod
- 2:Issues as need quick assistance
- Add tabbar
- Crashes When Attempting to Present Side View Multiple Times
- setFrontViewController deprecated, no replacement HOT 1
- PKReveal dead? HOT 3
- `prefersStatusBarHidden` is not called in the FrontViewController
- ViewController lost reference when push notification was being clicked and when the app was in background too
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 pkrevealcontroller.