ГоловнаКаталогБлогРейтингЕ-Пошта 
 
 
Зробити домашньою у вибране  

Форуми -> Розробка додатків для iPhone/iPad/Mac iOS/OS X -> Програмно додати Button в UIToolBar
 
programmer 03:06 27.01.2012 Цитувати № 1 [^]
 
Як програмно додати Button в UIToolBar?
 
Joe 03:31 27.01.2012 Цитувати № 2 [^]
 
Text

        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];

 
 
Joe 03:32 27.01.2012 Цитувати № 3 [^]
 
Text

-(void)toolbarButtonPressed:(id)sender
{
//Code
}
 


  Логін:
  Пароль:
Книга Фріланс на західному ринку
Книга Фріланс на західному ринку

APServer | SiMan CMS | Лічильник відвідувань | Тека сайтів | Рейтинг | Форум | Download | Шаблони сторінок | Посібник Smarty | Підручник PHP | Статті/Огляди