- Get rid of the
[connection release]
in the 2nd line. Theconnection
object comes in autoreleased, so this could cause crashes. - It looks like you've got a property named
tableArray
? If so, you're redeclaring the name in this method (you should have gotten a compiler warning).
On second thought, here's how the 2nd 1/2 of the method should look:
NSMutableArray *tmpArray = [[NSMutableArray alloc] initWithObjects:nil];
for (NSString *element in dataArray) {
[tmpArray addObject:[element objectForKey:@"name"]];
}
self.tableArray = tmpArray;
[tmpArray release];
kubi
2010-02-06 21:21:26