在我的应用程序中,我有一个添加笔记到特定笔记按钮的选项用于添加笔记的按钮位于top.So我想在笔记为added.If时突出显示该特定按钮笔记附加了笔记笔记图标应该亮起/发光(以某种方式看起来不同),这样它就可以快速识别此笔记是否有笔记attached.How can I implement one.Is it possible.Can any one请提前帮助me.Thanks
发布于 2011-09-14 13:54:55
我们在一个应用程序中使用了工具栏中的一些特殊按钮。我们按照下面的方式来做。
UIButton* btnInfo = [UIButton buttonWithType:UIButtonTypeInfoLight];
[btnInfo addTarget:self action:@selector(verInfoBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:btnInfo];这里的重点是使用[[UIBarButtonItem alloc] initWithCustomView:btnInfo];方法。
看看它是否能有所帮助。
https://stackoverflow.com/questions/7411506
复制相似问题