secondViewController.h:
#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
в чем проблема?