运行我的应用程序时出现以下错误。错误:在iPhone SDK中的“ - [NSCFString sizeWithTextStyle:]:无法识别的选择器”
“ - [NSCFString sizeWithTextStyle:]:无法识别选择
我还没有在我的整个项目中使用sizeWithTextStyle。
那么有什么可能是错的?
我得到错误的return pos;
声明如下
代码:
(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *pos = [[UIView alloc] initWithFrame:CGRectMake(0.0,0.0,320.0,35.0)];
return pos;
}
错误控制台:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString sizeWithTextStyle:]: unrecognized selector sent to instance 0x7044b50'
由于压痕问题,而把整个崩溃日志在这里,我是P.在的Utting崩溃的屏幕截图日志
硬没有一些更多的代码来表示。你能提供你的应用程序崩溃的代码行吗? – 2011-02-18 10:42:46
@Philipp Jaquet:我编辑了我的问题并添加了我的代码。我试过调试代码,发现应用程序崩溃了** SIGNAL ABORT **语句 – 2011-02-18 10:52:52