0
我有三個的UIViewController:A,B,C開關的UIViewController在iOS中
我轉到從A
我轉到C B從乙
我怎樣才能goBackTo從C A沒有通過乙?
//in a.m
B* b =[B alloc] init];
[self presentModalViewController:b animated:YES];
[b release];
//in b.m
C* c=[C alloc] init];
[self presentModalViewController:c animated YES];
[c release];
如果沒有導航控制器,它將不起作用,因爲它是來自UINavigationController類的方法。 – sooper 2012-04-05 15:41:13
我預計。那麼,他可以在延遲中使用[self dismissmodalviewcontroller:animated:]。 (不會拖延兩者,因爲它不能一次處理兩次解散,而會忽略第二次解除) – 2012-04-05 15:43:20
是的,現在我知道差異了,thx。 – haibarahu 2013-03-28 03:34:59