0
如何從另一個類加載xib?如何從另一個類加載xib
我嘗試下面的代碼
[self.navigationController pushViewController:[[serverlistViewController alloc] initWithNibName:@"serverlistViewController" bundle:nil] animated:YES];
但它無法加載。
我又一次試圖下面的代碼
serverlistViewController *ServerlistViewController=[[serverlistViewController alloc] initWithNibName:@"serverlistViewController" bundle:nil];
[self.navigationController pushViewController:ServerlistViewController animated:YES];
[ServerlistViewController release];
但它也did'nt工作。
你能給我一個suggection
在此先感謝