Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift 3 的使用问题 #29

Closed
LwyWing opened this issue Oct 2, 2016 · 1 comment
Closed

swift 3 的使用问题 #29

LwyWing opened this issue Oct 2, 2016 · 1 comment

Comments

@LwyWing
Copy link

LwyWing commented Oct 2, 2016

在swift 3 中 ,在VC的viewDidLoad下调用,不管是
self.navigationController
还是
self.rt_navigationController
都会中断在

- (void)setViewControllers:(NSArray<UIViewController *> *)viewControllers animated:(BOOL)animated
{
    if (self.navigationController)
        [self.navigationController setViewControllers:viewControllers
                                             animated:animated];
    else
        [super setViewControllers:viewControllers animated:animated];
}

中的倒数第二行,不知道怎么在swift 3 下对VC的navigationBar进行自定义.
还有新建一个类继承RTRootNavigationController和UINavigationControllerDelegate的时候,意在自动以过场动画,也会有如上的中断.

@rickytan
Copy link
Owner

rickytan commented Oct 6, 2016

只是中断?会 crash 吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants