Reputation: 133
I'm a bit confused on how I go about changing the UITableViewCell. Is this correct?
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 95;
}
If I need to explain more I can. Sorry if this is a dumb question, I'm new to iOS dev.
Upvotes: 2
Views: 352
Reputation: 10959
set your table's datasource and delegate to File's owner from .xib.
Upvotes: 0
Reputation: 3082
first check you have declared table view delegate in .h file or not..
No need of declaring table view with property..
UITableView *tableView;
declare like this..
Upvotes: 0
Reputation: 33421
That code is fine, it is probably just not being called. You need to properly set the delegate
property of the table view for this method to be called.
or
Since your heights are all the same, you can take a shortcut and set the rowHeight property of your table view.
Upvotes: 1