Hi, I am trying to add a simple button programatically and it is not showing up.
What is wrong with it ?
#import "xyzViewController.h"@interface xyzViewController ()@end@implementation xyzViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. CGRect buttonFrame = CGRectMake(60, 60, 200,80); UIButton *button = [[UIButton alloc] initWithFrame:buttonFrame]; button.layer.borderColor = [UIColor redColor].CGColor; [self.view addSubview:button];}- (void)didReceiveMemoryWarning{ [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated.}@end