我有一个名为"theImageView"的UIImageView,UIImage为单色(透明背景),就像下面的左黑心一样.如何根据iOS 7+导航栏图标中使用的色调方法在iOS 7或更高版本中以编程方式更改此图像的色调?
这种方法也适用于Apple Watch应用程序的WatchKit吗?

我见过有关正确对齐的帖子,但我无法让左对齐工作.我希望按钮占据屏幕的宽度,左侧是图像,中间是标题/文字.
这不起作用(至少可靠):
button.titleLabel.textAlignment = UITextAlignmentCenter;
[button setImageEdgeInsets:UIEdgeInsetsMake(0, -60.0, 0, 0)];
button.frame = CGRectMake((self.view.frame.size.width - w ) / 2, self.view.frame.size.height - 140.0, self.view.frame.size.width - 10.0, 40.0);
Run Code Online (Sandbox Code Playgroud)