recruit-mp / RMPScrollingMenuBarController

RMPScrollingMenuBarController has a scrollable menu bar, and multiple view controllers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash in case which call serViewControllers at the second time.

yshrkt opened this issue · comments

Crash in case which called setViewController at the second time in order to change menuBarController's viewControllers.

NSArray* viewControllersFirst = @[vc1a, vc2a, vc3a];
[menuBarController setViewControllers:viewControllers];
...
// Already shows viewControllers in menuBarController
...
// In certain timing,  reset viewControllsers
NSArray* viewControllersSecond = @[vc1b, vc2b, vc3b];
[menuBarController setViewControllers:viewControllers]
// Crash!!

Pull request #4

Merged pull request.