DianQK / TransitionTreasury

Easier way to push your viewController.
https://transitiontreasury.com
MIT License
2.09k stars 157 forks source link

how can use the "tr_popToViewController" #28

Open thousandsNight opened 8 years ago

thousandsNight commented 8 years ago

let vc = self.navigationController?.viewControllers[3] self.navigationController?.tr_popToViewController(vc)

then make a mistake "generic parameter 'T' could not be inferred"

DianQK commented 8 years ago

Hi~ @thousandsNight

Your viewController should conform NavgationTransitionable

DianQK commented 8 years ago

maybe you can show your code?

maybe you need to cast self.navigationController?.viewControllers (UIViewController) to BaseViewController or CompleteLoginInfoVC.