problem with IBoutlet UITableView connection
- by ideafactory
Hi,I'm having a problem with IBoutlet UITableView connection. It seems that the IBOutlet isn't connected to the TaleView.
I set the delgate and the datasource to the files owner and set the iboutlet to the tableview in the nib.
The tableview is well initialized. I just want to do some reloadData and it's not working. I try to do some deselectRow just to see if it isn't reloadData problem but it doesn't deselect so i assume that the iboutlet isn't associated with my tableview. This table view is in a viewcontroller that is called as a modalViewController.
Here is some code:
My .h file:
@interface AddEditProjectsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UITextViewDelegate, UIAlertViewDelegate>{
IBOutlet UITableView *addEditProjectTable;
}
@property (nonatomic, retain) IBOutlet UITableView *addEditProjectTable;
@end
My .m file:
- (void)viewWillAppear:(BOOL)animated {
(...)
[addEditProjectTable reloadData];
[super viewWillAppear:animated];
Thanks for any help! :)