diff --git a/TPKeyboardAvoidingSample/SecondViewController.m b/TPKeyboardAvoidingSample/SecondViewController.m index 21d6c395..c9c29559 100644 --- a/TPKeyboardAvoidingSample/SecondViewController.m +++ b/TPKeyboardAvoidingSample/SecondViewController.m @@ -104,8 +104,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N cell.selectionStyle = UITableViewCellSelectionStyleNone; } - cell.textLabel.text = [NSString stringWithFormat:@"Order %d", indexPath.row]; - ((UITextField*)cell.accessoryView).placeholder = [NSString stringWithFormat:@"%d bananas", indexPath.row]; + cell.textLabel.text = [NSString stringWithFormat:@"Order %d", (int)indexPath.row]; + ((UITextField*)cell.accessoryView).placeholder = [NSString stringWithFormat:@"%d bananas", (int)indexPath.row]; return cell; }