Matt Green
Matt Green

Reputation: 185

make custom navigationbar titleview

I have a custom view for my navigation bar title, which I am setting like this:

UIImageView *titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CustomTitleView.png"]];
self.navigationItem.titleView  = titleView;

This works as expected on the simulator but doesnt show up when testing on a device.

Any help much appreciated!!

Upvotes: 1

Views: 1135

Answers (1)

wattson12
wattson12

Reputation: 11174

check the case of the file name? the simulator is case insensitive, the device is case sensitive for file names

Upvotes: 2

Related Questions