2
在前向类对象中找不到属性
我正在将本教程改编成我的应用程序,并且将其归结为最后一个错误,这使我停滞不前。程序无法在另一个文件中找到属性,但是该属性已明确定义。这是有问题的代码: 实际错误行: for (DTContact *dtc in _dtContact.contact) { 文件和相关项目的.h: #import <UIKit/UIKit.h> @class XMLTestViewController; @class DTCXMLResponse; @interface XMLTestController : UIViewController{ UIWindow *window; XMLTestViewController *viewController; DTCXMLResponse *_dtContact; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet XMLTestViewController *viewController; @property (nonatomic, retain) DTCXMLResponse *dtContact; @property (nonatomic, retain) IBOutlet UIButton *mybutton; -(IBAction)buttonClicked; …
78
ios
xml
properties
gdataxml