Open vu0tran opened 10 years ago
It looks like the problem is due to Autolayout. I disabled Autolayout in my storyboard and things work fine. If you want to use Autolayout, open up TheSidebarController.m and set translatesAutoresizingMaskIntoConstraints to YES for the side bar controllers you wish to use Autolayout with.
Example:
self.leftSidebarContainerViewController.view.translatesAutoresizingMaskIntoConstraints = YES;
Here's the code I'm using below. When I instantiate a UIViewController from a storyboard rather than a xib, none of the UIButtons are responsive. It's as if they were behind an invisible layer. (I've made sure to enable user interactions)
When I instantiate with alloc init and add UIButtons programatically on the UIViewController's ViewDidLoad method however, it works.
It seems to be working when I use [[UIViewController alloc]init] and adding UIViews on the main ViewDidLoad though...