在iPhone中添加注释时特别指示或突出显示工具栏按钮 [英] specially indicating or highlighting a toolbar button when a note is added in iphone

查看:79
本文介绍了在iPhone中添加注释时特别指示或突出显示工具栏按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有一个为特定提示添加注释的选项.添加注释的按钮在顶部.所以我想在添加注释时突出显示该特定按钮.图标应该亮起/发光(某种程度上看起来有所不同),以便它可以快速识别此提示已附加注释.我该如何实施此注释?有可能吗?任何人都可以帮助我.谢谢!

In my app i have an option for adding notes to particular tips.the button for adding notes is at the top.So i want to highlight that particular button when a notes is added.If a Tip has a note attached the notes icon should light up / glow (somehow look different), so that it can quickly identify this tip has a note attached.How can i implement this one.Is it possible.Can any one Please help me.Thanks in advance

推荐答案

我们在应用程序的工具栏中使用了一些特殊的按钮.我们按照以下方式进行.

We used some special button in tool bar in an application. We make it following way.

    UIButton* btnInfo = [UIButton buttonWithType:UIButtonTypeInfoLight];
[btnInfo addTarget:self action:@selector(verInfoBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:btnInfo];

这里要点是使用[[UIBarButtonItem alloc] initWithCustomView:btnInfo];方法.

检查是否有帮助...

Check if it can be helpful...

这篇关于在iPhone中添加注释时特别指示或突出显示工具栏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆