Jason, you're awesome. That was it. It turns out that for UIBarButtonItems,
"The alpha values in the source image are used to create the images—opaque
values are ignored." That's fine with me, I don't actually need or want
these icons to be full color, so I should be able to make this work. 

If you did want to put a color button on the toolbar, it apparently can be
done: "you could create a UIBarButtonItem using initWithCustomView:, with
the UIButton as the custom view. This way, you don't have to try and
manually position the button around the existing toolbar items. You'll still
need to make your button image mimic the look and feel of the toolbar
buttons, though, which is annoying.

"One other point about this approach: if you do this, be sure to set the
frame of the UIButton to the size of the image. Otherwise, you can run into
the weird issue of being able to see the button, but not being able to tap
on it, because the bounds of the button is actually initialized to (0, 0, 0,
0)."

(The above quoted material is from the link you provided.) I have not tried
this approach yet, because like I said, I don't think I'll need it, but I'm
going to give it a shot at some point just because I like seeing if I can
make this sort of thing work. 


--Chris


jawbrey wrote
> 
> this
> thread<http://www.iphonedevsdk.com/forum/iphone-sdk-development/33286-color-image-uibarbuttonitem-uitoolbar.html>
> (old,
> but possibly still relevant) suggests using a regular UIButton instead of
> a
> toolbar button if you want to use an image
> 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIToolBar-Button-Question-tp4655537p4655558.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to