0

私はiOSを初めて使用するので、非常に単純なことを行うことはできません。

TableViewController *tableVC = [[TableViewController alloc] initWithNibName:@"TableView" bundle:nil andType:CONTROLLER_TYPE_FIRST];
ViewController *wizard = [[ViewController alloc] initWithNibName:@"WizardView" bundle:nil andtype:first];
UINavigationController *navC = [[UINavigationController alloc] initWithRootViewController:wizard];

tableVCで初期化し、動作します。しかし、ウィザードで初期化すると、

'Could not load NIB in bundle: 'NSBundle </Users/Mac/Library/Application Support/iPhone Simulator/6.0/Applications/60750878-E595-4A24-B0B8-F65DA78128C0/kodinisRaktas.app> (loaded)' with name 'WizardView''

このバンドルペン先を機能させるにはどうすればよいですか?

4

1 に答える 1

0

ケース:

  1. ViewController doesnot have .xib.
  2. ViewController does have .xib but its name is not 'WizardView'.

解決:

ケース 1:

 ViewController *wizard = [[ViewController alloc] init];

ケース 2:

use correct name of .xib file
于 2012-10-31T10:10:11.707 に答える