Possible duplicate : enter link description here
I have 3 custom cell with Xib ( customCell1, customCell2, customCell3 ) and i need to set all of them only in one section ( i have don it before with 3 section without any problem ) .
customCell1 : is a static cell (an image)
customCell3 : is also a static cell (UITextView with a button)
customCell2 : must be dynamic (Its contain a MutableArray) which is may have different value in different situation...
My questions are : 1 : in consider to cell number two which have different rows how can i return :
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
my first Row must be (customCell1) and my last row must be (customCell3 ) in rows between must be (customCell2) ?
2 : in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
how can i separate this custom cells and call them in their own indexPath ?