shweta thakar
shweta thakar

Reputation: 1757

iphone:SIGABRT when i append NSMutable Array

When I append NSMutableArray with some constant name it shows an error of SIGABRT..

cell.textLabel.text = [[self.Plist objectAtIndex: indexPath.row] valueForKey: NAME_KEY];

Upvotes: 1

Views: 180

Answers (1)

the.evangelist
the.evangelist

Reputation: 488

You would need to make sure that - a) NSDictionary is added to your Plist array before you could use valueForKey: b) The value you added to dictionary is of type NSSting - Else you would get this SIGABRT's.

I would suggest before adding the "value" to your cell.text.label store in your temp variable and check for the correct value type.

Upvotes: 1

Related Questions