Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AbhishekApple

macrumors member
Original poster
Aug 5, 2010
86
0
I hv already added two BarButton through IB, now i want a label on it

i tried doing ths
Code:
lblPage = [[UILabel alloc] initWithFrame:CGRectMake(163,429, 126, 18)];
UIBarButtonItem *btnPage = [[UIBarButtonItem alloc] initWithCustomView:lblPage];
[toolbar setItems:xxxx];

but the toolbar is askn for an Array of objects and i want to add only one item extra apart from the button added from IB.

Do i have to add all the buttons through code without use of IB.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.