I started with a Universal app project but have changed it to iPhone only everything works fine in iPad (both pixel doubling mode and 1x mode) except for the following line
in
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
......
UIImageView* iview = (UIImageView*)[cell viewWithTag:405];
[iview setImage:[UIImage imageNamed:[NSString stringWithFormat:@"searchlist_%@Thumb", c.Name]]];
}
the image simply doesn’t show up, what could be different on iPad?
the cell is pre configured in nib and is being loaded properly and other labels are being set properly
I’m also getting these assertions in console
Assertion failed: (cls), function getName, file /SourceCache/objc4_Sim/objc4-427.1.1/runtime/objc-runtime-new.m, line 3939.
The problem could be caused by any number of things. First, reformat your code so it looks like this:
Then set a breakpoint on the last line. In the debugger you can check the values of
iview,imageName, andimage. Which one of those has an unexpected value will give you a clue where to look for the source of the problem.