导航控制器计数0

时间:2011-07-09 07:14:10

标签: iphone objective-c ios uinavigationcontroller count

NSLog(@"Views in hierarchy: %lu",
    (unsigned long)[navigationController.viewControllers count]);

我在NSLog

中得到了答案0

1 个答案:

答案 0 :(得分:2)

为什么不把它打印成,

NSLog(@"Views in hierarchy: %d", [navigationController.viewControllers count]);