loading NSMutableArray into a Table View in Iphone

Posted by sicKo on Stack Overflow See other posts from Stack Overflow or by sicKo
Published on 2011-03-17T08:04:49Z Indexed on 2011/03/17 8:10 UTC
Read the original article Hit count: 213

I'm getting this error when I tried to put my array content into the table view. Btw, I'm new in this iphone development thingy..

2011-03-17 15:54:13.142 FullApp[6851:207] -[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x5903860 2011-03-17 15:54:13.143 FullApp[6851:207] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x5903860'

And here are my codes..

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}

// Configure the cell.
FullAppAppDelegate *fullapp = (FullAppAppDelegate *)[[UIApplication sharedApplication]delegate];

NSString *cellValue = [[fullapp.soapResults objectAtIndex:0] objectAtIndex:indexPath.row];

cell.textLabel.text = cellValue;

Here are my array content

2011-03-17 16:00:29.976 FullApp[6898:207] (
"Everyday.com.my",
"Mydeals.com.my"

)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview