ipup / PPRevealSideViewController

A new container controller to easily push views on side like Path or Facebook
www.ipup.pro
Other
821 stars 194 forks source link

Pan gesture problem with storyboard, nib is ok #94

Closed interchen closed 9 years ago

interchen commented 10 years ago

ios 2014213 10 04 06

Here is my code:

[super viewDidLoad]; ...

UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil]; self.sceneNavigationController = [story instantiateViewControllerWithIdentifier:@"sceneNavigationController"]; self.homeRightNavigationController = [story instantiateViewControllerWithIdentifier:@"homeRightNavigationController"];

    self.revealSideViewController.delegate = self;
    self.revealSideViewController.panInteractionsWhenClosed = PPRevealSideInteractionNavigationBar | PPRevealSideInteractionContentView;

}

// iPhone if (!isiPad) { [self.revealSideViewController preloadViewController:self.sceneNavigationController forSide:PPRevealSideDirectionLeft withOffset:kRevealOffset];

    [self.revealSideViewController preloadViewController:self.homeRightNavigationController
                                                 forSide:PPRevealSideDirectionRight
                                              withOffset:kRevealOffset];
}

}

}

pragma mark - actions

ipodishima commented 10 years ago

Hi. That may not be compatible with story boards. I know that I use a trick to preload the view which may not be compatible with your use. I would advise to design on your own the left view with a nib or manually

interchen commented 10 years ago

Thanks. Is there any plan for storyboard? I think storyboard will be more important for developing in the future.