Hi All,
I have a problem with an array.
My array contains data for UITableView cells, the problem I have implemented the reordering ability and used the following code;
Code:
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath
toIndexPath:(NSIndexPath *)toIndexPath {
NSString *item = [[arryData objectAtIndex:fromIndexPath.row] retain];
[arryData removeObjectAtIndex:fromIndexPath.row];
[arryData insertObject:item atIndex:toIndexPath.row];
[item release];
}
In Xcode I have a warning;
'NSArray' may not respond to 'insertObject:atIndex'
against;
Code:
[arryData removeObjectAtIndex:fromIndexPath.row];
[arryData insertObject:item atIndex:toIndexPath.row];
When I run the debugger I keep hitting the following error;
Code:
Thread 1: Program recieved signal: "SIGABRT"
(Am I the only one who finds the Output feedback pointless? Coming from VS, the error output is very generic)
Can you help?
Cheers
Carl