Adding A Button

Define in the .h file

}
- (IBAction)myButtonPressed:(id)sender;

(more…)

Changing Button Properties

Changing In A Method Called By A Button


- (IBAction)MyButton:(id)sender
{
	UIButton *ThisButton = (UIButton *)sender;
	[ThisButton setTitle:@"1234" forState:UIControlStateNormal];
	ThisButton.titleLabel.font = [UIFont systemFontOfSize:9];
}

(more…)

Programmatically Fake a Button Touch Event

If you need to fake a touch event and not simply call a UIButtons method, you can use this:


	[MyButtonName sendActionsForControlEvents: UIControlEventTouchUpInside];

Using Images In Buttons

Designing Graphics

Use a 10px rounded corner for iPhone and iPad button graphics if you want to match the standard button shape.

(more…)