I am learning iOS for the first time when creating an application. In one of the requirements, a UITableViewCell should look like this:
(PS: This is just a design, no code was written for this)
However, when I draw my UITableViewCell , it looks like




and the generated code looks like
- (void)setTransactionCell:(TransactionCell *)transactionCell transactionModel:(TransactionModel *)transactionModel { transactionCell.dateOfMonth.image = [self getDayImage:[UIImage imageNamed:@"1"]]; transactionCell.dayOfWeek.image = [self getDayImage:[UIImage imageNamed:@"Sun"]]; transactionCell.name.text = transactionModel.name; transactionCell.name.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:15]; transactionCell.amount.text = transactionModel.amount; transactionCell.amount.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:15]; transactionCell.categoryImage.image = [self getCategoryImage:[UIImage imageNamed:transactionModel.category]]; transactionCell.imageView.contentMode = UIViewContentModeCenter; } - (UIImage *)getDayImage: (UIImage *) image { UIGraphicsBeginImageContextWithOptions(CGSizeMake(30, 30), NO, 0); [image drawInRect:CGRectMake(0, 0, 15, 15)]; UIImage *im2 = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return im2; } - (UIImage *)getCategoryImage:(UIImage *)image { UIGraphicsBeginImageContextWithOptions(CGSizeMake(40, 40), NO, 0); [image drawInRect:CGRectMake(0, 0, 36, 36)]; UIImage *im2 = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return im2; }
and finally, when I launch the application, I see that 
I'm pretty new and not sure what is going wrong. I was desperate to drag shortcuts and images into all possible combinations, but nothing worked. I am missing something really elementary, can you explain what is wrong?
ios objective-c uitableview
daydreamer
source share