how to balance position of UIBarButtonItem in toolbar

Posted by RAGOpoR on Stack Overflow See other posts from Stack Overflow or by RAGOpoR
Published on 2010-03-12T06:42:24Z Indexed on 2010/03/12 6:47 UTC
Read the original article Hit count: 399

Filed under:
|

is it possible to balance the position of button(example toolbar in Safari)?

    UIBarButtonItem *infoButton = [[UIBarButtonItem alloc] 
                                       initWithBarButtonSystemItem:UIBarButtonSystemItemCompose 
                                       target:self action:@selector(support:)];

        UIBarButtonItem *next = [[UIBarButtonItem alloc] 
                                       initWithBarButtonSystemItem:UIBarButtonSystemItemPlay 
                                       target:self action:@selector(support:)];
        [self.navigationController.toolbar setItems:[NSArray arrayWithObjects:infoButton, next,nil] animated:YES];

alt text

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitoolbar