tgyhlsb / THTinderNavigationController

iOS navigation component based on Tinder app
MIT License
84 stars 11 forks source link

Push a UIViewController from THTinderNavigationController #12

Open carayolthomas opened 9 years ago

carayolthomas commented 9 years ago

Hey,

I am trying to push an UIViewController when I press a UIButton which is on one of the three main controller of THTinderNavigationController but it is not working, nothing is happening. Did you manage to do something like this? Or am I doing something wrong?

Here some code when I press the button

AppSettingsViewController *nextVC = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"AppSettingsViewController"];
dispatch_async(dispatch_get_main_queue(), ^{
        [self.navigationController pushViewController:nextVC animated:YES];
});

However, when I present a UIViewController modally, I don't have any problems.

Cheers,

Thomas

harkmall commented 9 years ago

+1 for a fix for this