Ich habe eine Liste benutzerdefinierte viewController
Wie benutzerdefinierte Klasse werfen Uiviewcontroller
NSMutableArray *arrOfCtrls = [[NSMutableArray alloc] init];
AViewController *aCtrl = [[AViewController alloc] init];
BViewController *bCtrl = [[BViewController alloc] init];
CViewController *cCtrl = [[CViewController alloc] init];
DViewController *dCtrl = [[DViewController alloc] init];
[arrOfCtrls addObject: aCtrl];
[arrOfCtrls addObject: bCtrl];
[arrOfCtrls addObject: cCtrl];
[arrOfCtrls addObject: dCtrl];
Und dann möchte ich UIViewController
in Liste arrOfCtrls
UIViewController *vCtrl = arrOfCtrls[0];
Wie kommt man werfen vctrl ist AViewController
? Ich möchte Eigenschaften erhalten in vctrl, Beispiel möchte ich aProperties in AViewController
vCtrl.aProperties
Dank erhalten!
'AViewController * VCTR überprüfen werfen = (AViewController *) arrOfCtrls [0]; ' – Paulw11
benutzen' ((AViewController *) arrOfCtrls [0]) '? – Tj3n
Ich weiß nicht, vCtr ist AViewController. Wie man vCtr rekonfiguriert ist AViewController – Takashi