I have this so far:
UIButton * btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
btn.frame = CGRectMake(50, 200, 200, 50);
[btn setTitle:@"Button 1" forState:UIControlStateNormal];
[btn addTarget:self action:@selector(someAction) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:btn];
Now I have someAction.. where do I put it and how do I do this? I'm sorry.. I hate asking questions.. but I looked over this everywhere and spent hours..