stefanoa / SASlideMenu

Library to create iOS sliding menu compatible with storyboards
568 stars 118 forks source link

Slide Menu visible in all screens #1

Closed sourcebits-tariq closed 11 years ago

sourcebits-tariq commented 11 years ago

This bug is easily reproducible.

Steps to reproduce:

  1. Open Storyboard
  2. Select View of Dark View Controller
  3. Change background color to Clear Color
  4. Now you will notice that in your Dark View Controller Menu View controller is visible.

Can you please fix this issue ? While using your open source in my clear color table view I am getting this issue.

stefanoa commented 11 years ago

I am not sure I understood. It seems to me that should work that way, the Dark View Controller is transparent thus when sliding over it is possible to see the view behind it, in this case the Menu view. Are you using the clear color Table View to show some background view behind it?

sourcebits-tariq commented 11 years ago

Yes I am using clear color tableView, well I got your point I will define some other color. Thanks And one more thing. Lets say I am in detail view controller of DarkViewController after applying push and in detail screen I have a UIButton so on button action I have to navigate back to 2nd static cell of SlideMenu View Controller.

You have not provided any callback which should be accessible from any other controller for navigation. Right now I am performing using Notifications.

stefanoa commented 11 years ago

I understand, I will think about it. My only concern is that directly switching from a detail view controller to another option of the slide menu will require a lot of animations that may confuse the user. In any case if you assigned an identifier to all the segue that are connected to the menu view controller you can switch to another option of the menu via performFromSegue. You need to pass the menuController to your View controller and when needed you can switch using performFromSegue.

sourcebits-tariq commented 11 years ago

Yeah only feasible option as of now. But I have to maintain reference in each controller :-/

Thanks

stefanoa commented 11 years ago

Yes exactly :-).