Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UITabBar Action in a loop
- int i =0;
- for (NSString *items in array)
- {
- //Set button style
- [barButton setStyle:UIBarButtonItemStyleBordered];
- //Set the button title
- [barButton setTitle:[array objectAtIndex:i]];
- [barButton setAction:@selector(tmp:)];
- //Add the bar button to the array - later will load the array to the tool bar items list.
- [itemsArray insertObject:barButton atIndex:i];
- i++;
- }
Add Comment
Please, Sign In to add comment