I have a UITableView in my UIViewController and implemented the delegates in my header file.
Since the UIViewController does not come with the methods I copied over the these delegate methods in my @implimentation
I was ready to test the whole thing out and added my last line of code to refresh the tableview
and it gave me an error
Even though I added the delegates and created the delegate methods. Is it giving me this error because my custom view is of type UIViewController and not UITableView? I have see tableviews in other viewControllers so I must be missing part of this puzzle to make it work?
Code:
@interface JobViewController : UIViewController <UITextFieldDelegate, UITableViewDelegate, UITableViewDataSource>{
Since the UIViewController does not come with the methods I copied over the these delegate methods in my @implimentation
Code:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
I was ready to test the whole thing out and added my last line of code to refresh the tableview
Code:
[self.tableView reloadData];
and it gave me an error
Property 'tableView' not found on object of type 'JobViewController *'
Even though I added the delegates and created the delegate methods. Is it giving me this error because my custom view is of type UIViewController and not UITableView? I have see tableviews in other viewControllers so I must be missing part of this puzzle to make it work?