這樣推出View:
[[self.navigationController pushViewController:myViewController animated:YES];
怎麼樣獲取推出View(這是子view)的父View控制器的類名?
這樣:
NSUInteger numberOfViewControllersOnStack = [self.navigationController.viewControllers count];
UIViewController *parentViewController = self.navigationController.viewControllers[numberOfViewControllersOnStack - 2];
Class parentVCClass = [parentViewController class];
NSString *className = NSStringFromClass(parentVCClass);