简体   繁体   English

Appcelerator IOS后台在运行应用程序或SyncTask时?

[英]Appcelerator IOS background while app is running or SyncTask?

my question for IOS only 我的问题仅适用于IOS

i need to start new thread ( background ) have nothing with UI or start background service while application is running in IOS how ? 当应用程序在IOS运行时,我需要使用UI启动没有任何内容的新线程( background )或启动后台服务吗?

I've tried Ti.worker but its not background thread its foreground thread . 我已经尝试过Ti.worker但是它不是后台线程,而是前台线程。

the reason i need this request i dealing with Ti.Contacts.getAllPeople() , and some phones has over 5K contacts and when i loop over 5K contacts the UI got lagged and stop working until loop is complete . 我需要此请求的原因是我处理了Ti.Contacts.getAllPeople() ,并且某些电话具有超过5K的联系人,当我循环超过5K的联系人时, UI滞后并停止工作,直到循环完成。

is there anyway to loop Ti.Contacts.getAllPeople() as pagenation or in background or thread when app is running ? 无论如何,当应用程序运行时,是否可以将Ti.Contacts.getAllPeople()作为分页或在后台或线程中循环?

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

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