May I know is what are the solution to use in order to make the following code working in order.
- (CGFloat)getRowImageHeight
{
CGFloat defaultHeight =
the good approach would be something like this:
- (void)getRowImageHeightWithCompletionBlock:(void(^)(CGFloat height))completion {
CGFloat defaultHeight = 300.f;
[self configureImageTVCell:self.itemImageTVCell block:^(UIImage *image, BOOL succeeded) {
if(succeeded && completion) {
completion(image.size.height);
}
}];
}