problem with IBoutlet UITableView connection

Posted by ideafactory on Stack Overflow See other posts from Stack Overflow or by ideafactory
Published on 2010-01-25T17:22:13Z Indexed on 2010/03/28 3:03 UTC
Read the original article Hit count: 438

Filed under:
|
|

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! :)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview