在图标上添加推送通知红色气泡
我需要具有类似的功能,如图像。我将有一个 UITabBarController
,在第一个视图上我有一个 TableView
。填充到该表视图的数据将来自远程服务器。
当我的应用程序空闲或不活动时,以及当有一组新数据来自服务器时,我需要在“红色气泡”中显示新记录的数量,如图所示。
I need to have a similar functionality as shown in the image. I will have a UITabBarController
and on the first view i have a TableView
. Data populated to this table view will come from a remote server.
When my application is idle or when it is inactive and when there is a new set of data coming from the server, I need to display the number of new records in that "Red bubble" as shown in the image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想在应用程序图标上显示徽章编号,请使用以下代码:
它将在应用程序图标上显示1。
If you want to show badge number on the application icon, use the following code:
it will display 1 on the application icon.