开发者

specially indicating or highlighting a toolbar button when a note is added in 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 开发者_JS百科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];

Here main point is to use [[UIBarButtonItem alloc] initWithCustomView:btnInfo]; method.

Check if it can be helpful...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜