I temporarly added some values to the UITableViewCell programmatically. But I need to add images to each cell. How can I do that?
UITableViewCell
Here is my code. .h file>
You can add images using the imageView property of a cell:
cell.imageView.image = [UIImage imageNamed:@"user.jpg"];
in your - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath