I have a UIBarButtonItem that I am trying to create with initWithImage. However, whenever I run the app I get a small button with a blank white box instead of the image. Am I missing something?
UIBarButtonItem *myToolbarItem = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed"myImage.png"]
style:UIBarButtonItemStyleBordered
target:self
action:nil] autorelease];
UIBarButtonItem *myToolbarItem = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed"myImage.png"]
style:UIBarButtonItemStyleBordered
target:self
action:nil] autorelease];