Его может быть одним из методов протокола UITableViewDataSource
. Для
- tableView:numberOfRowsInSection:
он должен вернуть целое число, равное сумме или результату
-insertRowsAtIndexPaths:withRowAnimation:
и / или -deleteRowsAtIndexPaths:withRowAnimation
:
Для
- numberOfSectionsInTableView:
он должен вернуть целое число, равное сумме или результату
-insertRowsAtIndexPaths:withRowAnimation:
и / или -deleteSections:withRowAnimation:
Well, if you have the image as UIImage
, then you want to take a look at the size
property:
CGFloat width = myImage.size.width;
CGFloat height = myImage.size.height;
You can try to check
[[UIImage imageNamed:@"myImage.png"] size].height; [[UIImage imageNamed:@"myImage.png"] size].width;
Возможно, это тоже вам поможет:
UIImage *image = [ UIImage imageNamed: @"image.png" ];
imageView.bounds = CGRectMake(0, 0, image.size.width, image.size.height);