当打开.m文件时尤其是自定义的继承uitableviewcontroler的m 文件。不能滑动,不能正常显示。

 

解决方法:

用文本编辑器打开这个文件,关闭xcode 。然后在继承uitableviewcontroler的m  文件中找到

-(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath {// Navigation logic may go here. Create and push another view controller./*
    <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
    // ...
    // Pass the selected object to the new view controller.
    [self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
    */}


代码块,然后删除,保存。重新打开xcode4.6.3
成功解决。请给个好评。找了很多天才找到解决办法。

相关文章:

  • 2021-12-22
  • 2021-04-26
  • 2022-12-23
  • 2021-11-13
  • 2021-12-02
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-10-28
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案