Git Product home page Git Product logo

Comments (19)

jnjosh avatar jnjosh commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

jnjosh avatar jnjosh commented on August 17, 2024

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. :)

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

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!

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

Hey, any update on the storyboard version?

Thanks!

from twtsidemenuviewcontroller.

flightblog avatar flightblog commented on August 17, 2024

Do you absolutely need to use storyboards?

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

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 [email protected] wrote:

Do you absolutely need to use storyboards?


Reply to this email directly or view it on GitHub.

from twtsidemenuviewcontroller.

leerie avatar leerie commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

flightblog avatar flightblog commented on August 17, 2024

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).

from twtsidemenuviewcontroller.

leerie avatar leerie commented on August 17, 2024

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

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

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

from twtsidemenuviewcontroller.

leerie avatar leerie commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

mbcoder17 avatar mbcoder17 commented on August 17, 2024

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 [email protected] 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.

from twtsidemenuviewcontroller.

leerie avatar leerie commented on August 17, 2024

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

from twtsidemenuviewcontroller.

jnjosh avatar jnjosh commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

leerie avatar leerie commented on August 17, 2024

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.

from twtsidemenuviewcontroller.

billinghamj avatar billinghamj commented on August 17, 2024

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

from twtsidemenuviewcontroller.

scurioni avatar scurioni commented on August 17, 2024

Still no example with storyboards? That would be awesome!

from twtsidemenuviewcontroller.

samuil-yanovski avatar samuil-yanovski commented on August 17, 2024

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

from twtsidemenuviewcontroller.

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.