I want to put a UIImage in the left side of each row in a UITableView. This is pretty standard, and is supported directly by UIKit. But putting in a (large) image causes all kinds of wonkiness, so presumably I'm supposed to scale the thing correctly myself. But none of the docs give a default size for this image using the standard out of the box views-- I'm surprised.
Others on SO indicate that 44 is the default height of a row (What is the default height of UITableViewCell?) Is 44x44 the "default" image size?
Thanks!
I'm on Xcode 4.6.3 building for iOS 6.1. I tried 2 sizes of image assigned to
imageView
of the UITableViewCell: 48x48 and 128x128 pixels. This was run in the iOS Simulator (iPad).In the UITableViewDelegate, I put the following line in
tableView:didSelectRowAtIndexPath:
and put a break point right after it.In lldb, I get this output:
The only conclusion I can reach based on this evidence is that the default image size is not 40x40.
40x40
UITableViewCell's imageView fit to 40x40