iDevelopper / PBRevealViewController

A UIViewController subclass for revealing a left and/or right view controller above or below a main view controller.
MIT License
80 stars 16 forks source link

Black Ui View on running #11

Closed alisattar456 closed 8 years ago

alisattar456 commented 8 years ago

screen shot 2016-10-14 at 11 38 51 am screen shot 2016-10-14 at 11 39 15 am ![Uploading Screen Shot 2016-10-14 at 11.39.28 AM.png…]() screen shot 2016-10-14 at 11 40 15 am ![Uploading Screen Shot 2016-10-14 at 11.40.42 AM.png…]()

Sebacho-Barajas commented 8 years ago

did you add pbrevealviewcontroller as initial view controller screen shot 2016-10-14 at 3 10 15 pm ?

and did you set the (pb_main and pb_left)segues as PBRevealViewControllerSegueSetController

and in the home view controller you should set it like this viewDidload

_sidebarButton.target = self.revealViewController;
_sidebarButton.action = @selector(revealLeftView);

you don't need to add panGestureRecognizer as pbrevealviewcontroller adds it automatically

iDevelopper commented 8 years ago

As @Sebacho-Barajas wrote:

Your storyboard segue have to be like this (I think you've selected PBRevealViewControllerSeguePushController):

2016-10-15_06-50-39

Same for pb_left.

alisattar456 commented 8 years ago

11