matej / mbpulldowncontroller Goto Github PK
View Code? Open in Web Editor NEWMBPullDownController, an iOS container view controller for pullable scroll view interfaces.
Home Page: www.bukovinski.com
License: MIT License
MBPullDownController, an iOS container view controller for pullable scroll view interfaces.
Home Page: www.bukovinski.com
License: MIT License
Link to a video demonstrating the problem: http://cl.ly/3h2x033e0o22
When the front view is lowered, then rotated, the front (green) view has now either disappeared completely, or is far too big (depending on which rotation you started before the rotation).
I have not added any custom code into my view controllers to make this reproduceable. The only line I added into my default AppDelegate.m is:
self.window.rootViewController = [[MBPullDownController alloc] initWithFrontController:[[FirstViewController alloc] init] backController:[[SecondViewController alloc] init]];
And then I changed a line in MBPulldownController to make the front view appear green.
'The front controller's view is not a UIScrollView subclas
explication i create newx project and i copy all file in my new project and i have this error 'NSInternalInconsistencyException', reason: 'The front controller's view is not a UIScrollView subclass.'
pls i want to see the image full screen how i can do this
excuse me but i french
i spreak bad enslish tkanks you
2013-06-13 11:57:37.610 Pull Down[8408:c07] -[UIWindow _MB_PullDownControllerHitTest:withEvent:]: unrecognized selector sent to instance 0xdd5c270
2013-06-13 11:57:37.613 Pull Down[8408:c07] *** Terminating app
This happens in the demo app as well. In fact, this is the demo app.
Hi Matej,
I embedded a TabbarController to the front view controller (subclass of scrollview)and the tab bar is not visible when in action.The rest of the things are working fine.Also I tried adding it programatically .but the tab bar scrolls with the view.Please help
My code snippet as below
FrontViewController *front = [self.storyboard instantiateViewControllerWithIdentifier:@"front"];
MBPullDownController *pullDownController=[[MBPullDownController alloc]initWithFrontController:front backController:self];
[self.navigationController addChildViewController:pullDownController];
I'm having trouble adding an action after the user swipes the front up or down.
when i change the front view backgroundColor,then back view controller's view become same background color
Major issues when trying to get this to work with storyboards, anyone managed it?
Hi,
I'm trying to get this working in a Storyboard app. I tried to do it using the method you've described in another similar issue.
I've created 2 separate view controllers (a UIViewController, UITableViewCOntroller) and have assigned them unique identifiers. For the main view controller I've subclasses it from MBPullDownController and in its awakeFromNib method I'm trying to put the following 2 lines.
[self frontController:[self.storyboard instantiateViewControllerWithIdentifier:@"FrontController"]];
[self backController:[self.storyboard instantiateViewControllerWithIdentifier:@"BackController"]];
But when I do so, the following errors occur.
No visible @interface for 'BaseViewController' declares the selector 'frontController'
No visible @interface for 'BaseViewController' declares the selector 'backController'
BaseViewController is my main view controller (MBPullDownController
suubclass). Can you please tell me how to rectify this? Am I missing something here?
I've created a small project demonstrating the issue and uploaded it if you want to take a quick look at it.
http://www30.zippyshare.com/v/17127840/file.html
the current implementation of code at MBPullDownController.m :
if (new) { [self addChildViewController:new]; UIView *containerView = self.view; UIView *newView = new.view; NSString *message = @"The front controller's view is not a UIScrollView subclass."; NSAssert(!newView || [newView isKindOfClass:[UIScrollView class]], message); if (newView) { newView.frame = containerView.bounds; [containerView addSubview:newView]; } }
According to my understanding , the condition of NSAssert should be
NSAssert(newView || [newView isKindOfClass:[UIScrollView class]], message);
log the message if new view is nil and newView is not kind of UIScrollView.
Hello,
Is there is anyway to make the top header menu shown all the time? i mean when i have too many cells in the front controller and i move up lots of cells i must scroll back too much to get to the top menu. is there is a way to make the top menu always visible?
'NSInvalidArgumentException', reason: '-[NSCache setObject:forKey:cost:]: attempt to insert nil value
I've tried to add multiple pull down controllers to a navigation controller.
You can find my sample here: https://dl.dropbox.com/u/2668924/pulldown.zip
Looking at my sample project - when you select a cell and the (in the second pull down controller) try to scroll the table in the back.
It's not working, only the front controller is responding.
Any ideas?
Close app
Quickly toggling the open / close button leaves the front controller in an invalid position (does not scroll fully up). See #2 .
Hi Matej,
I have come across 2 issues using MBPullDownController. I'm using the Storyboards method by the way.
But the last cell is covered from the front controller view. The table view doesn't reach the end. If I pull up, you can see it but if I let go, it hides behind again.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 30;
}
I cannot scroll back up or down. It's weird. I have no idea why that's happening.
I also uploaded a small Xcode project to demonstrate the issues I'm having. If you can take a look at it and tell me how to correct them, I'd really appreciate it. To
https://www.dropbox.com/s/xfdvbnlzxulim8e/PullDownTest.zip
Thank you.
Can I put in a new (or previously initialised) view in the front view, after selecting from the back list. So it acts in a similar way to the now ubiquitous Facebook / Youtube / etc style side-menu?
When using MBPullDownController in storyboard, I came across his issue. Top part of the collection view goes under the navigation bar.
I managed to get resolve it by the following line of code.
[self.collectionView setContentInset:UIEdgeInsetsMake(self.navigationController.navigationBar.frame.size.height + [UIApplication sharedApplication].statusBarFrame.size.height, 0, 0, 0)];
Now the problem is say, I open the pull down menu and select something from the under laying table view and then the collection view slides back up. When it does, it appears under the navigation bar same as before.
I tried to resolve this by using NSNotifications. By sending a notification when the collection view finishes sliding back up. But couldn't do it because there's no method firing when it finishes sliding back. It sends the notification just before the animation starts, not after its done.
Is there any workaround for this? Any suggestion would be great. Thanks.
Does anyone have a clue on how I can instantiate MBPullDownController?
i have a UITABBARCONTROLLER and want to integrate the MBPullDown with the view controllers of the tabarcontroller.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.