0

I am having a tableview which i created using iboutlet.and when i am trying to reload table it is giving this exception. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x5949310'

IBOutlet UITableView *tableStudent;

here is .h and .m files.

.h

IBOutlet UITableView *tableStudent;

-(IBAction)enabeluser;

.m

 -(IBAction)enabeluser{
   [tableStudent reloadData];
 }
Nitin
  • 7,455
  • 2
  • 32
  • 51
iosDev
  • 604
  • 3
  • 12
  • 28

2 Answers2

0

NSInvalidArgumentException occur when you refer to non-existing object. You might have release datasource or tableview object in the class.

MrWaqasAhmed
  • 1,479
  • 12
  • 12
0

your array has got released at that time you call realodData method.