Do I have to release a a tableView after pressing a button. The tableView is made of three rows and one section. I put in the file header and within method that implements the pressure of the button I wrote:
-(void) pressedButton: (id) sender{
self.tableView.delegate= self;
}
calling the delegate returns null. What should I do?
Is the tableview set up correctly in interface builder? Check to see if the value of your tableview is not nil. If it is nil, there is your problem. Is the delegate something other than self prior to tapping this button? If not, you can set the delegate in IB. Also, you need to set the datasource of the tableview. The datasource is where you get the real meat of your tableview.