在我的应用程序中,我有一个选项可以添加注释到特定的提示。添加注释的按钮位于顶部。因此,当添加注释时,我希望突出显示该特定按钮。如果一个提示有附加说明,那么附注图标应该会亮起来/发光(以某种方式看起来不同),以便快速识别该提示已经添加了注释。如何实现这个功能?这是可能的吗?请问有谁能帮我。谢谢。
UIButton* btnInfo = [UIButton buttonWithType:UIButtonTypeInfoLight];
[btnInfo addTarget:self action:@selector(verInfoBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:btnInfo];
[[UIBarButtonItem alloc] initWithCustomView:btnInfo];
方法。检查一下它是否有帮助...