Skip to content

🤖 Track faces and eyes in real-time with this high-performance Python and OpenCV application, featuring dynamic identity labeling and a sleek interface.

License

Notifications You must be signed in to change notification settings

ZHThinker/RealTime-Face-Eye-Identifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather

基于AFNetworking框架,实现多次网络请求中只保留第一次或最后一次请求。

for (int i = 0; i < 20; i++) {
    [Weather loadWeatherInformationWithCallBack:^(NSArray *array, NSError *error) {
        if (error) {
            NSLog(@"%@", error);
            return;
        } else {
            self.testArray = [self.testArray arrayByAddingObjectsFromArray:array];
            self.weather = self.testArray;
            NSLog(@"-------------------------%d", i);
        }
    } keepFirst:NO];
 }

我们在控制器中用for循环发出20个请求,如果keepFirst参数为NO,控制台输出为:

保留最后一次请求

如果keepFirst参数为YES,控制台输出为:

保留第一次请求

Releases

No releases published

Packages

No packages published