Extending the Utility Template
I'm working with the Xcode Utility template (Mainside/Flipside) and I need to add a new screen. I've added:
docView.xib (copy of FlipsideView.xib)
docView.m
docView.h
docViewController.m
docViewController.h
In rootViewController.h I added:
UINavigationBar *docNavigationBar;
docViewController *docViewController;
@property (nonatomic, retain) UINavigationBar *docNavigationBar;
@property (nonatomic, retain) docViewController *docViewController;
In rootViewController.m, I synthesized the additions:
@synthesize docNavigationBar;
@synthesize docViewController;
I do import my .h into rootViewController.m:
#import "docViewController.h"
When I try to compile I error out with:
RootViewController.m:22: error: syntax error before 'docViewController'
Warnings:
RootViewController.m:160: warning: property 'docViewController' requires method '-docViewController' to be defined - use @synthesize, @dynamic or provide a method implementation
RootViewController.m:160: warning: property 'docViewController' requires the method 'setDocViewController:' to be defined - use @synthesize, @dynamic or provide a method implementation
What have I missed?