标签:
由于NSArray只能存放对象,而每个对象都有class方法。所以可以用每个对象的class方法初始化数组。
比如:
loginAuthClassArray = [[NSArray alloc] initWithObjects:
[ServiceTrackListViewController class],
[MYEfubaoViewController class],
[MyFavoriteViewController
class],
[LotteryDealsViewController class],
[NewProductConsultantViewController class],
[MobilePayQueryViewController class],
[MobilePayViewController
class],
[MobilePayByYiFuBaoViewController class],
[OrderSubmitRootViewController class],
[HotelOrderListViewController
class],
[MyTicketListViewController class],
[PayServiceQueryViewController class],
[ReceiveInfoViewController class],
[PayServicePaymentViewController
class],
[HotelOrderSubmitViewController class],
[LotteryPayPageViewController class],
[GBPayViewController class],
[GBPayByEfubaoViewController
class],
[GBOrderListViewController class],
[SKQRCodeReadController class],
[UserConsultantViewController class],
[GBPayViewController class],
[AllOrderListViewController class],
[BrowsingHistoryViewController class],
[AddressInfoListViewController class],
[UserFeedBackController class],
[EvaluationViewController class],
[ReturnGoodsQueryViewController class],
[UserFeedBackNewViewController
class],
[NewInviteFriendViewController class],
[NewGetRedPackViewController class],
[PaymentModeViewController
class],
[MyCouponViewController class],
[MyCardViewController class],
[AfterSaleViewController class],
[ConsultationViewController class],
[IWantconsultViewController class],
[NewGetRedPackEntryViewController class],
[VoiceSignViewController class],
NSClassFromString(@"MyIntegralExchangeViewController"),
nil];
标签:
原文地址:http://www.cnblogs.com/zhuzhang/p/4899246.html