草庐IT

sizeWithTextStyle

全部标签

iphone - 错误 : "-[NSCFString sizeWithTextStyle:]: unrecognized selector" in IPhone SDK

我在运行我的应用程序时遇到以下错误。'-[NSCFStringsizeWithTextStyle:]:无法识别的选择器我没有在我的整个项目中使用sizeWithTextStyle。那么哪里出了问题呢?我在下面的returnpos;语句中出错代码:(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section{UIView*pos=[[UIViewalloc]initWithFrame:CGRectMake(0.0,0.0,320.0,35.0)];returnpos;}控制台错误:由