Create a tableviewcontroller after some functions are automatically generated, how does this function (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath is when executed, viewdidload function is executed, but this is not executed, what is the reason it?
Reply:
When you set the tableview delegate = self, he will call the tableView delegate methods asynchronously.
sectionsIntable,
rowsInSection,
heightInIndexPath,
cellForRow ...
Reply:
- (NSInteger) tableView: (UITableView *) tableView numberOfRowsInSection: (NSInteger) section this method returns 0 when you said that the method may not be executed
Reply:
- (NSInteger) tableView: (UITableView *) tableView numberOfRowsInSection: (NSInteger) section this method returns 0 when you said that the method may not be executed
Reply:
Thank you, ah, you're right, seems to be because there is not anything in my database. But I viewcontroller data stored inside the m-file record into the database, and NSLog it's true, why take this tableviewcontroller in m-file to take the time to go inside, but no data is it, this is why it
No comments:
Post a Comment