Hi all,
I have a tool bar that has 3 buttons, and 3 spacers on it. The issue is sometimes, then I touch the 3rd button the 2nd button will get the "glow" around it and be selected if I touchUP, instead of the 3rd button. I do have some spacers but the buttons are 50pxls apart which is plenty on the screen.
Anyone have any idea why this would be happening, Its happening on multiple devices.
Heres the code to set the tool bar up
Code:
UIImage *addActivityImage = [UIImage imageNamed:@"Calendar.png"];
UIBarButtonItem *addActivityButton = [[UIBarButtonItem alloc]
initWithImage:addActivityImage style:UIBarButtonItemStylePlain target:self action:@selector(showAppointments)];
UIBarButtonItem *historyButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(showHistory)];
UIBarButtonItem *spacerItemA = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
spacerItemA.width = 50;
UIBarButtonItem *spacerItemB = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
spacerItemB.width = 50;
UIBarButtonItem *spacerItemC = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
spacerItemC.width = 50;
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemReply target:self action:@selector(removeActiveToolBar)];
[contactToolbar setItems:[NSArray arrayWithObjects:backButton,spacerItemA,addActivityButton,spacerItemB,historyButton,spacerItemC,nil]];
Just in case, this tool bar is being displayed in a UITableViewCell as a subView. Not Sure that matters but in case.
Thanks for any help or guidance.
Jeremy