I am in a strange situation . when i try to reload the tableview using reloadData()
it shows the following error . . .
fatal error: unexp
There could be n number of reasons for this error. Some of the common causes are:
@IBOutlet
for your UITableView
is not properly connected. reloadData()
call.nil
before using some objects.[[self.view.subviews objectAtIndex:0] reloadData];
. Reference: Apple Discussion Forum.You can try above cases but for us to pin point the error you would need to share your table view rendering code and flow.
Solution found !!!! :)
Thanks to Abhinav for giving me the thread even though his suggestion failed.
var array : NSArray = self.view.subviews
array.objectAtIndex(0).reloadData()
I got the same error for this also. So I tried this and worked
var array : NSArray = self.view.subviews
array.objectAtIndex(2).reloadData()
Here in this array my tableview is at 2nd index. So my suggestion is to check the array to identify the tableview object first and use the index.