Parse platform [错误]:类名中的错误字符-PFQueryTableViewController
嗨,我一直在尝试测试Parse PFQueryTableViewController的功能。。。但是,请继续接收以下错误: [错误]:类名中的错误字符:(null)(代码:103,版本:1.8.0) 我正在使用Parse网站上的标准代码来执行此操作,并尝试从我的Pase类:Categories加载tableviewcontroller i、 e:Parse platform [错误]:类名中的错误字符-PFQueryTableViewController,parse-platform,pfquery,pfquerytableviewcontrolle,Parse Platform,Pfquery,Pfquerytableviewcontrolle,嗨,我一直在尝试测试Parse PFQueryTableViewController的功能。。。但是,请继续接收以下错误: [错误]:类名中的错误字符:(null)(代码:103,版本:1.8.0) 我正在使用Parse网站上的标准代码来执行此操作,并尝试从我的Pase类:Categories加载tableviewcontroller i、 e: 收到任何帮助都会很好,谢谢。使用interface builder创建解析提供的vc时出现问题:IB视图控制器是用initWithCoder:初始化的
收到任何帮助都会很好,谢谢。使用interface builder创建解析提供的vc时出现问题:IB视图控制器是用
initWithCoder:
初始化的,而不是initWithStyle
涵盖任何一种初始值设定项的一种方法是将自定义代码考虑在内,并同时实现这两种代码,如下所示:
- (void)customInit {
self.parseClassName = @"Categories";
self.pullToRefreshEnabled = YES;
self.paginationEnabled = YES;
self.objectsPerPage = 25;
}
- (id)initWithStyle:(UITableViewStyle)style {
self = [super initWithStyle:style];
if (self) {
[self customInit];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
[self customInit];
}
return self;
}
嗨,丹,修好了,现在可以了。非常感谢:-)
- (void)customInit {
self.parseClassName = @"Categories";
self.pullToRefreshEnabled = YES;
self.paginationEnabled = YES;
self.objectsPerPage = 25;
}
- (id)initWithStyle:(UITableViewStyle)style {
self = [super initWithStyle:style];
if (self) {
[self customInit];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
[self customInit];
}
return self;
}