So I recently started some tinkering with my app to get it iOS 11 compatible. Thankfully most of it seems to be.
However I did notice, that in my toolbar if I tap or tap and hold an icon, which is supplied by a ttf file from fontello, I get a question mark box.
Example of icon:
menu = [[UIBarButtonItem alloc] initWithTitle:@"\ue811" style:UIBarButtonItemStylePlain target:self action:@selector(openMenu:)];
[menu setTitleTextAttributes:@{NSFontAttributeName:
[UIFont fontWithName:@"fontello"
size:23],
NSForegroundColorAttributeName:[[UIColor alloc] initWithWhite:1.f alpha:1.f]}
forState:UIControlStateNormal];
It works fine in the 10.3.1 simulator. Just iOS 11 seems to be goofed up. I've read about the fixes for devices, which means to update the OS, but the simulator is running 11.2, so in theory it should be fixed.
Is anybody else having this issue? Know of a fix?
Just add title text attributes for UIControlStateSelected also:
forState:UIControlStateSelected];