Tag: 不推荐使用

在iOS 5中使用不推荐的方法

我最近把我的应用程序从iOS3升级到了iOS5。 而在编译时,我有几个使用不推荐使用的方法的警告。 两个问题: 1-在使用iOS 5的iPhone中运行应用程序时会出现问题吗? 2-如果我没有更新方法,威尔苹果上传到AppStore的时候会接受这个应用程序吗?

initWithFrame:reuseIdentifier:已被弃用

在我的项目中,我有一个Deprecations警告,initWithFrame:reuseIdentifier:已被弃用 我不知道这是什么意思,有人告诉我如何解决这个警告,谢谢 这里是短代码 – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; } // Set up the cell… NSString *cellValue = [itemsList objectAtIndex:indexPath.row]; cell.textLabel.text = cellValue; return cell; } 警告就在这一行: cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero […]