如何将其转换为UIViewController
可能:
for (UIViewController *tmpController in [self.navigationController viewControllers])
{
if ([tmpController isKindOfClass:[RootViewController class]])
{
[self.navigationController popToViewController:tmpController animated:YES];
break;
}
}
[self.navigationController viewControllers]
--> 如何将其转换为UIViewController
,因为我有错误,
[self.navigationController popToViewController:tmpController animated:YES];
--> 虽然这部分我把它转换成这个 -->[self dismissModalViewControllerAnimated:YES];