返回到任意控制器视图 指定跳转

xxxVC 是你要指定的界面类

跳转到指定视图

NSArray*temArray =self.navigationController.viewControllers;

for(UIViewController*temVCintemArray)

{

if([temVC isKindOfClass:[xxxVC Class]])

{

[self.navigationController popToViewController:temVC animated:YES];

}

}

// 遍历 UIAlertView 所包含的所有控件

for (UIView *tempView in alertView.subviews) {

if ([tempView isKindOfClass:[UILabel class]]) {

// 当该控件为一个 UILabel 时

UILabel *tempLabel = (UILabel *) tempView;

if ([tempLabel.text isEqualToString:alertView.message]) {

// 调整对齐方式

tempLabel.textAlignment = UITextAlignmentLeft;

// 调整字体大小

[tempLabel setFont:[UIFont systemFontOfSize:15.0]];

}

}

}

你可能感兴趣的:(返回到任意控制器视图 指定跳转)