if (self.navigationController.viewControllers.count > 2) {
for (int i = self.navigationController.viewControllers.count - 2; i >= 0 ; i--) {
id con = [self.navigationController.viewControllers
objectAtIndex:i];
if (![con isKindOfClass:NSClassFromString(@"RecordViewController")] &&
![con isKindOfClass:NSClassFromString(@"ModifyLrcViewController")]) {
[self.navigationController popToViewController:con animated:YES];
return;
}
}
[self.navigationControllerpopViewControllerAnimated:YES];
}
else {
[self.navigationControllerpopViewControllerAnimated:YES];
}