I read the documentation for the apple, and this is not clear for a newbie to Objective-C like me. I am trying to implement a multi- UITableView by following this link and it just does not work, so I need to understand how cellForRowAtIndexPath works, for me personally this method seems rather complicated.
1) What does he return? UITableViewCell ? But why does it look so weird?
-(UITableViewCell *)tableView:(UITableView *)tableView
- What is it? Could you explain?
2) How is it called, and more importantly, how to connect it to a specific UITableView ? What if I have two UITableView named firstTableView and secondTableView and I want them to be different (to execute cellForRowAtIndexPath differently)? How should I associate my UITableViews with this
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
The method accepts NSIndexPath , not a UITableView . What will i do?
ios objective-c uitableview multiple-columns
Andrey Chernukha Nov 10 2018-11-11T00: 00
source share