ios - Can There Be 2 Cell Identifiers In 1 Class? -


I'm just thinking that two different 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];

I am trying to create another cell identifier , but whenever I call a code , I have a code Is duplicate, even when I change the name of the cell identifier. Any help would be great!

Yes! You can create 2 cell identifiers in a class. But different custom cell xib and various identifiers. 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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -