//vcArr为控制器的数组
NSMutableArray * vcArr = [[NSMutableArrayalloc]initWithObjects:@"AllOrderViewController",@"WaitPaymentViewController",@"WaitShippingViewController",@"WaitReceivingViewController",@"InvalidViewController",nil];
//跳转到第4个控制器
NSString * className =vcArr[3];
Class class = NSClassFromString(className);
if (class) {
UIViewController *vc = [classnew];
vc.view.frame =CGRectMake(0,0, MWidth,MHeight);
[self.viewaddSubview:vc.view];
}else{
NSLog(@"没有找到该类");
}