Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-02-2010, 02:42 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
Default Wrong ToolBar Items receiving touch

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
j3rm is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 251
18 members and 233 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0