|
|
Joe |
-(void)toolbarButtonPressed:(id)sender
{
//Code
}
|
Joe |
UIBarButtonItem *item1 = [[UIBarButtonItem alloc] initWithTitle:@"Item" style:UIBarButtonItemStyleBordered target:self action:@selector(toolbarButtonPressed:)];
UIBarButtonItem *item2 = [[UIBarButtonItem alloc] initWithTitle:@"Item1" style:UIBarButtonItemStyleBordered target:self action:@selector(toolbarButtonPressed:)];
NSArray *buttons = [NSArray arrayWithObjects: item1, item2, nil];
[myToolBar setItems: buttons animated:NO];
[item1 release];
[item2 release];
|
programmer |
Як програмно додати Button в UIToolBar? |
|
|
Книга Фріланс на західному ринку
|
|