2
secondViewController.h:вид собственности не найден ни один объект типа secondViewController
#import <UIKit/UIKit.h>
@interface secondViewController : UIViewController
@end
viewController.m:
#import "ViewController.h"
#import "secondViewController.h"
@interface ViewController()
@end
@implementation ViewController
@synthesize secondViewController;
- (IBAction)switchView:(id)sender{
[self.view addSubview:secondViewController.view atIndex:0];
}
вид недвижимости не найдено ни одного объекта типа secondViewController , что не случилось?
Я создаю файл xib initWithNibName – leoliu