I am not certain whether I need an IBAction for a UITableView, but what I am trying to do is have some sort of control that I can hide it during page load, and then populate its cells with data that I get from a remote server, and then display that UITableView.
How can I do that? When I currenly try to press control and drag the UITableView to the ViewController, it gives me optons of: dataSource or delegate. I chose dataSource, but then was not sure what to do next.
I tried to do something like this in the .h
@interface MyBusinessesController : UIViewController
- (IBAction)businessList:(id)sender;
@property (weak, nonatomic) IBOutlet UITableView *businessListProperty;
@end
and this in the .m
#import "MyBusinessesController.h"
@interface MyBusinessesController ()
@end
@implementation MyBusinessesController
@synthesize businessListProperty;
...
but it seems I am way off. What is the right way to do what I am trying to do?
Thank you!