Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storyboards....scrolling too! #6

Open
mbcoder17 opened this issue Oct 15, 2013 · 19 comments
Open

Storyboards....scrolling too! #6

mbcoder17 opened this issue Oct 15, 2013 · 19 comments

Comments

@mbcoder17
Copy link

Could you post an example with storyboards?

Also, in the luvocracy app, the menu appears to be a tableview, is this correct? If not, how would I get the buttons to scroll??

@jnjosh
Copy link
Contributor

jnjosh commented Oct 15, 2013

In the Luvocracy implementation it isn't a tableview, however the view can be anything. Since this menu view accepts two view controllers, all you need to do is give it a table view controller (or a view controller with a tableview in it) and you get that benefit.

I'll look into doing a sample with storyboards. I've never used them so it will be an interesting experiment.

@mbcoder17
Copy link
Author

What is being used in the Luvocracy implementation then? I'm kind of new to this, but I really want to use this menu in my app, and I love the way it's used in Luvocracy...is it just a bunch of buttons in a scroll view?

Thanks.

@jnjosh
Copy link
Contributor

jnjosh commented Oct 15, 2013

Basically, yes. Buttons in a scroll view. I'm not sure that this is really the best route though. It made sense for us, but your results may vary. :)

@mbcoder17
Copy link
Author

Ok...is there anyway you could go more in detail? Maybe in an email or private message? I'm very curious to know how you did it, I've been playing around with it but just can't get it. I'm also wondering how you made it jump back down under the status bar if you scroll too far above it...very cool!

@mbcoder17
Copy link
Author

Hey, any update on the storyboard version?

Thanks!

@flightblog
Copy link

Do you absolutely need to use storyboards?

@mbcoder17
Copy link
Author

Yes, my whole app is already using storyboards. I just need to change my menu so it matches iOS 7's design...

On Oct 20, 2013, at 6:59 PM, Steve Foster notifications@github.com wrote:

Do you absolutely need to use storyboards?


Reply to this email directly or view it on GitHub.

@leerie
Copy link

leerie commented Nov 7, 2013

Hello, I'm going for a storyboard version too, but I think I can figure that part out. My question is on the Menu View Controller. I noticed in the sample code that in MenuViewController.viewDidLoad() you have...

NSDictionary *viewDictionary = @{ @"imageView" : self.backgroundImageView };
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[imageView]" options:0 metrics:nil views:viewDictionary]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[imageView]" options:0 metrics:nil views:viewDictionary]];

My question is, since I'm planing on creating all of the views in Storyboard (or NIB for example), do I need to implement this in the view controller or forget about it. Basically, what does this do, I'm not this advanced yet. I figure its something to do with the autoLayout, but if I use a storyboard it looks like I'll be building most of its interface in code, as far as the background image.

@flightblog
Copy link

That code is handling the layout of the background image using auto layout.

The @"H:|-0-[imageView]" constraint handles the horizontal layout and is pushing the background image to the lefthand edge and the @"V:|-0-[imageView]" constraint is push the background image to the very top.

If you're handling the background color/image with your storyboard then you can leave this out. (I haven't used storyboards).

@leerie
Copy link

leerie commented Nov 7, 2013

Thanks for your reply. I'm gonna try it out without that code and see what happens.

@mbcoder17
Copy link
Author

I got tired of waiting for a storyboards version, so I went menu searching....Here is a similar menu system that is compatible with storyboards right out of the box: https://github.com/romaonthego/RESideMenu

@leerie
Copy link

leerie commented Nov 7, 2013

I've been looking at that one too, but honestly it seems so bland. The animations here are pretty nice but the read me needs some more information. Liking using multiple content views. Hopefully these guys will get into the storyboards and make life easier, but I think this one can work with it too.

RESideMenu demo is kinda weird, like why not just use a UITableViewController instead of a regular view and manually setup a table. Prototype cells are more visual and easier to maintain than plist files, but those are minor gripes of mine.

The lack of Storyboard examples does scare folks away though. Also, I will be adding some stuff in like ...

UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeLeft:)];
[swipeLeft setDirection:UISwipeGestureRecognizerDirectionLeft];
[self.view addGestureRecognizer:swipeLeft];

UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeRight:)];
[swipeRight setDirection:UISwipeGestureRecognizerDirectionRight];
[self.view addGestureRecognizer:swipeRight];

Just not sure exactly where though, guessing to the mainContentController.

Honestly, these guys quickly replied, so I'm gonna give them a try and let you all know how it's working out.

@mbcoder17
Copy link
Author

I’m using it in my app now, and I love it! Setup was extremely easy, and it doesn’t look half bad it my app either!

The reason I went searching for a different menu was the lack of a storyboard example here, but hopefully they can implement it soon!

On Nov 7, 2013, at 6:06 PM, leerie notifications@github.com wrote:

I've been looking at that one too, but honestly it seems so bland. The animations here are pretty nice but the read me needs some more information. Liking using multiple content views. Hopefully these guys will get into the storyboards and make life easier, but I think this one can work with it too.

RESideMenu demo is kinda weird, like why not just use a UITableViewController instead of a regular view and manually setup a table. Prototype cells are more visual and easier to maintain than plist files, but those are minor gripes of mine.

The lack of Storyboard examples does scare folks away though.


Reply to this email directly or view it on GitHub.

@leerie
Copy link

leerie commented Nov 7, 2013

Hmmm...Rocks and Hard places for me now :0 Decisions, Decisions.

@jnjosh
Copy link
Contributor

jnjosh commented Nov 8, 2013

Ok, guys. While I don't really understand why this needs a storyboard example to be useful, I will be working on some updates for this library today. I'll see if it is something I can throw a sample together. I don't use storyboards so I'll need to play with it some. Stay tuned.

@leerie
Copy link

leerie commented Nov 11, 2013

Cause some people are not as smart as you, but we gotta get the same work done and you can't do it all bro. lol, I didn't think it was necessary, but the documentation is kinda slim. No worries.

@billinghamj
Copy link

Storyboards are used an awful lot & they make things extremely convenient. It isn't super trivial to make a library like this work with storyboards because the example works via the App Delegate, which is not how storyboard apps are designed to work

@scurioni
Copy link

scurioni commented Jul 8, 2014

Still no example with storyboards? That would be awesome!

@samuil-yanovski
Copy link

I'm a little late to the party, but in case anyone is still looking for a Storyboard example - I've put one here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants