I think I remember something like this before. I was baffled. I think I had to change my button bar icons to be square pixel dimensions ( same pixels for length and width), but I could be remembering some other problem.
___ Shawn On Jun 23, 2012, at 11:06 PM, Chris_M <[email protected]> wrote: > > > Hi Jason, > > I've quadruple checked the casing and spelling of the file names, and they > definitely match, and the path is right (I use the same path elsewhere in > this view, and those graphics display just fine). > > How do I look inside my app bundle to verify that the images are there? > > So here's something else that's interesting. I changed the image for one of > the bar button items to an image file that is being displayed correctly on > the page elsewhere (it's a PNG with a transparent background). When used for > a bar button item, that image doesn't display either, but there's a grey > shape where the bar button is supposed to be in the shape of that graphic > (minus the transparent background). It's like the app is finding the graphic > file and placing it there, but it's all grey. Maybe the problem isn't that > the app isn't finding the images, it's that it's displaying them in a funky > fashion for some reason? > > > --Chris > > > jawbrey wrote >> >> Have you double checked the casing in your code matches your >> filenames, and the paths are relative to the root of your app? >> >> Also, you should look inside your app bundle to verify the images are >> really there >> >> Sent from my iPhone >> >> On Jun 23, 2012, at 5:29 PM, Chris_M <kungfuchris99@> wrote: >> >>> >>> Well, I'm glad I did it right, but bummed it's not displaying my images. >>> :-) >>> >>> Looking at the TweetStation example, I notice he's using >>> UIImage.FromBundle. >>> What's the difference between that and UIImage.FromFile? >>> >>> My image files are definitely set to Build Action -> Content. >>> >>> I tried UIBarButtonSystemItem.Refresh as you suggested, and the refresh >>> icon >>> displays correctly. So why the heck aren't *my* images displaying >>> correctly? >>> >>> >>> --Chris >>> >>> >>> >>> Nic Wise wrote >>>> >>>> Looks like you are doing it right. Have a look here too >>>> >>>> https://github.com/migueldeicaza/TweetStation/blob/master/TweetStation/UI/Web.cs >>>> >>>> however, are those images set as content in MD? (right click -> Build >>>> Action -> Content). If they dont exist in the bundle, then they will >>>> never show. Maybe try it with one of the system defined ones and see >>>> if that works, eg: >>>> >>>> new UIBarButtonItem(UIBarButtonSystemItem.Refresh, delegate { >>>> >>>> ?? >>>> >>>> On Fri, Jun 22, 2012 at 7:03 PM, Chris_M <kungfuchris99@> wrote: >>>>> >>>>> The >>>>> problem is that I want to use images for the buttons, and the images >>>>> are >>>>> not >>>>> displaying (I can get them to display as custom UIBottons but not as >>>>> UIBarButtons). >>>>> >>>>> What am I doing wrong? How do I get the UIImage.FromFile thing to work >>>>> with >>>>> these UIBarButtonItems? >>>>> >>>>> My second question is about positioning buttons on the toolbar. Are >>>>> there >>>>> any options other than using the Flexible and Fixed Space bar button >>>>> items? >>>>> >>>>> >>>>> --Chris >> > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/UIToolBar-Button-Question-tp4655537p4655547.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
