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

The Slide Menu dissappear when I give an action to button in tableView #44

Closed
klinkert0728 opened this issue May 20, 2014 · 11 comments
Closed

Comments

@klinkert0728
Copy link

EveryThing Works perfect but when I add an action to my button, everything dissappear
in my navigationBar. maybe you can help me.

this is the button with the action
captura de pantalla 2014-05-20 a la s 12 50 44 pm

this is the button without an action.
captura de pantalla 2014-05-20 a la s 12 51 06 pm

@klinkert0728
Copy link
Author

the pictures are reversed Sorry

@aryaxt
Copy link
Owner

aryaxt commented May 20, 2014

1- Which version are you using?
2- Do you assign action to edit button? in code? or storyboard?
3- Can you show the SlidaNavigationControllerDelegate methods you implemented?
4- Are you navigating between pages?

Will look into it tonight

@klinkert0728
Copy link
Author

  1. I'm using this version from cocoacontrols pod 'iOS-Slide-Menu', '~> 1.4.0'
  2. I assing the action in code like thise :
  • (IBAction)EditCategoriesAction:(id)sender {

    [self performSegueWithIdentifier:@"changeCategories_Segue" sender:nil];

}

and then y connect the button with the action

  1. I only have this
  • (BOOL)slideNavigationControllerShouldDisplayLeftMenu{
    return YES;
    }

4)With the button i need to push a tableViewController

Thank you very much for your help

@aryaxt
Copy link
Owner

aryaxt commented May 20, 2014

Ok I see the problem now. Menu should be set per page, that gives you the flexibility to turn it on/off per page. Just implement the same slideNavigationControllerShouldDisplayLeftMenu method in your UITableViewContorller and return YES. Let me know if that resolved the issue

@klinkert0728
Copy link
Author

I think i don't understand, let me explain you what i have,

I have a tableViewController embebed in the SlideNavController, in this tableView i have implemented the slideNavigationControllerShouldDisplayLeftMenu and i return yes, until now everythinkg works great in the navigation bar appears the slidenavigationController Button and everything is ok, the problem is when i add this(see the picture) button and i ser an action for the button, then everything in the NavigationBar hides

captura de pantalla 2014-05-20 a la s 6 00 17 pm

@aryaxt
Copy link
Owner

aryaxt commented May 21, 2014

I tested this with the demo project, and it works just fine. It's hard to tell what's happening with your project without seeing the code. Here is a link to the demo I created: https://drive.google.com/file/d/0B0sI36Zy_z2WVHZsZGprS3daWUE/edit?usp=sharing

Take a look at ProfileViewController, in storyboard there is a right-bar-button-item and it's linked to an IBAction that displays an alert and everything works fine.

Does your navigation bar go blank after you click the button? or when that page initially loads?

@klinkert0728
Copy link
Author

ok thank you very much for your help, i will look what's happening with my code
thanks again

@mightymietz
Copy link

Same here. If you connect an action to a navBarItem then everything in the navigationbar is hidden.This happens only on iOS 7!!! iOS8 works like a charm.

Update: Only happens when you connect IBAction in storyboard. When you do it programmatically everything works fine

@aryaxt
Copy link
Owner

aryaxt commented Dec 4, 2014

@D33Jay I haven't been able to reproduce. Would be great if you could provide a sample project

@aryaxt
Copy link
Owner

aryaxt commented Jan 5, 2015

Do you happen to use MBProgressHUD?
Calling hideHUDForView:self on MBProgressHUD removes subviews of UIWIndow which also includes the menu

@aryaxt
Copy link
Owner

aryaxt commented Feb 14, 2015

@klinkert0728 I'm guessing MBProgressHUD was the issue. Can you verify?

Thanks

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

3 participants