[英]xcode: following tutorial but 'subViewOneController' undeclared error
So I'm new to programming for the iPhone and I'm trying this new tutorial here: http://theappleblog.com/2009/04/15/iphone-dev-sessions-create-a-navigation-based-application/ 因此,我是iPhone编程的新手,并且在这里尝试该新教程: http : //theappleblog.com/2009/04/15/iphone-dev-sessions-create-a-navigation-based-application/
When I build the project, under the: RootViewController.m
当我构建项目时,在以下位置:
RootViewController.m
I get a 'subViewOneController' undeclared error at the first line: 我在第一行收到“ subViewOneController”未声明的错误:
// allocate a set of views and add to our view array as a dictionary item
SubViewOneController *subViewOneController = [[SubViewOneController alloc] init];
subViewOneController.title = @"Subview One";
What does the error mean? 错误是什么意思? and where should I look to make sure names are matching?
我应该在哪里确保名称匹配?
Thanks, Matt 谢谢,马特
您需要确保存在一个名为SubViewOneController
的类,并且要在RootViewController.m
导入其标头( SubViewOneController.h
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.