I have another issue going on right now though, I do happen to get the UITableView, but now the one I have made the file for. I get this error when I call the function from such as
expected identifier or '(' before '=' token
My code is as follows:
@interface try3ViewController : UIViewController {
IBOutlet UIButton *button1;
IBOutlet UIButton *button2;
IBOutlet UIButton *button3;
IBOutlet UIButton *button4;
IBOutlet UIButton *button5;
IBOutlet UIButton *button6;
// tblevent *events1;
IBOutlet UITableView *tblevent;
}
@property (nonatomic, retain) UIButton *button1;
@property (nonatomic, retain) UIButton *button2;
@property (nonatomic, retain) UIButton *button3;
@property (nonatomic, retain) UIButton *button4;
@property (nonatomic, retain) UIButton *button5;
@property (nonatomic, retain) UIButton *button6;
@property (nonatomic, retain) UITableView *tblevent;
-(IBAction)buttonPressed

id)sender;
//----------------------------------------
@implementation try3ViewController
@synthesize button1;
@synthesize button2;
@synthesize button3;
@synthesize button4;
@synthesize button5;
@synthesize button6;
@synthesize tblevent;
-(IBOutlet)buttonPressed

id)sender {
tblevent = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped];
[[self view] addSubview:tblevent];
}
Any recommendation here will be helpful.
Thanks