UIBarButtonItem *flexibleSpaceLeft = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
[yourToolbar setItems:[NSArray arrayWithObjects:flexibleSpaceLeft, yourUIBarButtonItem, nil]];
[flexibleSpaceLeft release];
via: http://stackoverflow.com/questions/602717/aligning-uitoolbar-items
1 comments:
thanks much!
geez... couldn't figure this out...
Post a Comment