简体   繁体   English

计算ios应用中的共享总数

[英]Count the total number of sharing in ios app

I'm developing an application, and in the main form of this application i coded 3 button: Facebook share,Twitter Share and Email sharing. 我正在开发一个应用程序,并以该应用程序的主要形式编码了3个按钮:Facebook共享,Twitter共享和电子邮件共享。

The main question is that when each user share the application the database (MYSQL) will be update to count how many times people have shared this application. 主要问题是,当每个用户共享应用程序时,数据库(MYSQL)都会更新,以计算用户共享该应用程序的次数。 However I will be using an NS timer to check the count from the database every 3s. 但是,我将使用NS计时器每3秒检查一次数据库中的计数。

Is this process will cause any trouble for the application? 这个过程会给应用程序带来麻烦吗?

只要在后台线程上完成工作即可,请不要阻塞UI。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM