iOS使用定時器,並添加到子線程運行

//定時檢查用戶的各類消息未讀數(每隔5秒鐘) NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(checkUnreadCount) userInfo:nil repeats:YES]; //放到子線程 [[NSRunLoop mainRu
相關文章
相關標籤/搜索