gpt4 book ai didi

iphone - 在iphone中添加注释时特别指示或突出显示工具栏按钮

转载 作者:搜寻专家 更新时间:2023-10-30 20:11:24 24 4
gpt4 key购买 nike

在我的应用程序中,我有一个选项可以为特定提示添加注释。添加注释的按钮位于顶部。所以我想在添加注释时突出显示该特定按钮。如果提示附有注释图标应该亮起/发光(不知何故看起来不同),以便它可以快速识别这个提示附有注释。我如何实现这个。是否可能。任何人都可以帮助我。提前致谢

最佳答案

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

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

这里的重点是使用[[UIBarButtonItem alloc] initWithCustomView:btnInfo];方法。

检查它是否有帮助...

关于iphone - 在iphone中添加注释时特别指示或突出显示工具栏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7411506/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com