1 When you use the default UITableViewCell generating unit in your code, you cannot use the Dequeuereusablecellwithidentifier:forindexpath: method if you have not registered in the Viewdidload in advance. Such as
UITableViewCell *cell = [TableView dequeuereusablecellwithidentifier:reusablecellwithidentifier forIndexPath: Indexpath];
The following practices should be used
UITableViewCell *cell = [TableView dequeuereusablecellwithidentifier:reusablecellwithidentifier]; if (! = [[UITableViewCell alloc] Initwithstyle:uitableviewcellstylesubtitle reuseidentifier: Reusablecellwithidentifier];}
In addition, the Dequeuereusablecellwithidentifier:forindexpath: method returns an available unit directly, and the programming example is
UITableViewCell *cell = [TableView dequeuereusablecellwithidentifier:reusablecellwithidentifier ForIndexPath: Indexpath]; // Set the cell return cell;
2
Some problems and solutions for IOS 8 & Xcode 6:uitableview