ios - Can There Be 2 Cell Identifiers In 1 Class? -
I'm just thinking that two different I am trying to create another Yes! You can create 2 cell identifiers in a class. But different custom cell xib and various identifiers. cell identifiers in a
tableview controller class? E.g. This is my first cell identifier code ...
Fixed NSString * CellIdentifier = @ "TableCell"; Tableclass * Cell = [Table View Due Rewase Eligible Cell Wuth Identifier: Cell Identifier for IndexPath: IndexPath];
cell identifier , but whenever I call a code
Fixed NSString * CellIdentifier1 = @ "CellID1"; Custom Cell 1 * Cell 1 = [Table Decuar Reuse Eligible Cell with Identifier: Cell Identifier 1 IndexPath: IndexPath]; Fixed NSString * cell identifier 2 = @ "cell ID2"; Custom Seale 2 * Cell 2 = [Table Decuar Reuse Eligible Cell with Identifier: Cell Identifier 2 IndexPath: IndexPath]; // When the cell is loading (indexPath.row == 0) {// cell1 code} if (indexPath.row == 1) {// cell2 code} < / Html>
Comments
Post a Comment