You can put initData according to your application requirement,
if your table needs to load data with new data every time, then it should be under
- (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated];
Otherwise, if the table needs to be reloaded with one Data that does not change or there is not any editing operation performed in Data, you should use
- (void)viewDidLoad { [super viewDidLoad];
Ajay sharma
source share