I get this error, when compiling project for real phone.
format specifies type 'long' but the argument has type 'int'
On simulator all work fine.
If replace "%d" with "%ld" I get this:
format specifies type 'int' but the argument has type 'long'
In this code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
if (cell) {
cell.textLabel.text = [NSString stringWithFormat:@"page %d", indexPath.row+1]; // <-
}
return cell;
}
How can I fix it?