how to make button in leftside of UItoolbar in iphone -


how can make button placed in left side of uitoolbar on iphone?

as example, need this.

    uibarbuttonitem *fixedcenter = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemfixedspace target:nil action:nil];     fixedcenter.width = 80.0f;     uibarbuttonitem *fixedleft = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemfixedspace target:nil action:nil];     fixedleft.width = 40.0f;      uibarbuttonitem *left = [[uibarbuttonitem alloc] initwithimage:[uiimage imagenamed:@"left.png"] style:uibarbuttonitemstyleplain target:self action:@selector(moveback:)];     uibarbuttonitem *right = [[uibarbuttonitem alloc] initwithimage:[uiimage imagenamed:@"right.png"] style:uibarbuttonitemstyleplain target:self action:@selector(moveforward:)];      [self settoolbaritems:[nsarray arraywithobjects:fixedleft, flex, left, fixedcenter, right, flex, action, nil]]; 

Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -