quemb / QMBTabs

Tab View Controller just like Safari or mobile Chrome
MIT License
124 stars 21 forks source link

The "changed to index" `NSLog` doesn't always fire in the demo. #5

Closed skull-squadron closed 11 years ago

skull-squadron commented 11 years ago

Fix:

selectViewController In QMBTabViewController.m,

controller.view.superview == nil may need to also call didSelectViewController

That would be the following just before } else {:

        if ([self.delegate respondsToSelector:@selector(tabViewController:didSelectViewController:)]){
            [self.delegate performSelector:@selector(tabViewController:didSelectViewController:) withObject:self withObject:self.selectedViewController];
        }