在我的viewController2我有不同的UIView的,讓我們說,當我加載viewController3我的viewController2我只需要顯示UIView2。有可能這樣做嗎?加載其他不同的viewController參數
viewController2,有很多形式。例如,單擊form1上的按鈕後,它將隱藏form1並顯示form2等等。現在,問題是如果我從viewController3加載我的viewController2是否可以顯示form2而不是form1?
下面是如何加載我viewController2:
[APP_DELEGATE setUIBlockingEnabled:[NSNumber numberWithBool:NO]];
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
appDelegate.rootViewController = nil;
appDelegate.rootViewController = [[RootViewController alloc] init];
appDelegate.window.rootViewController = appDelegate.rootViewController;
appDelegate.window.backgroundColor = [UIColor clearColor];
RegistrationViewController *controller = [[RegistrationViewController alloc]init];
[appDelegate.rootViewController moveToViewController:controller];
// viewController2
@property (nonatomic, strong) UIView *rectHolder1;
@property (nonatomic, strong) UIView *rectHolder2;
rectHolder1和rectHolder2有不同的子視圖,並在頁面加載我顯示rectHolder1和rectHolder2是不可見的。當用戶點擊rectHolder1的按鈕時,它會隱藏rectHolder1並顯示rectHolder2。現在我怎麼能直接顯示rectHolder2,如果我從另一個viewController加載viewController2
不能準確理解你想要的!更加詳細一些 ! – Lion
編輯它。謝謝! – Supermannoying
嘗試張貼一些截圖以便更好地理解。 –