我是非常新的Objective-C和即时尝试声明在XCode UITableView
的新实例。这里是我的代码:客观c类实例声明错误?
UITableView *mainTable = [[UITableView alloc] init];
和Xcode是在=
指着困扰着我约在声明语句,这显然是有结束分号。
编辑:
#import <UIKit/UIKit.h>
@interface TestRunAppDelegate : NSObject <UIApplicationDelegate> {
UITableView *mainTable = [[UITableView alloc] init];
}
你可以粘贴五行或六行左右的行吗? – BoltClock 2011-05-12 00:42:29