我一直试图在我的工具栏中有一个 UIBarButtonSystemItem ,它总是默认为标准蓝色。如果我使用图像或标题创建它,它可以使用正确的颜色正常工作,请使用 UIBarButtonSystemItem 尝试它,它会变为默认颜色,而我在互联网上找不到任何东西。
继承人的代码:
UIBarButtonItem *overlays = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPageCurl target:self action:@selector(overlays)];