如何回传通知中心裡的通知数目呢?

我参考了 NCIfNeeded 的原代码

//iOS 10 and up
%hook SBNotificationCenterWithSearchViewController

- (void)willActivateHosting
{
%orig;

if([[[self notificationListViewController] sectionList] sectionCount] == 0)
{
    [[self notificationAndTodayContainerView] scrollToPageAtIndex:0 animated:0];
}
else
{
    [[self notificationAndTodayContainerView] scrollToPageAtIndex:1 animated:0];
}
}
%end

在 iOS 10.1.1 上崩溃了,请问是否有其他方法回传通知数目呢?

同时我也找不到"notificationAndTodayContainerView"这个类别或方法。