Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在相机上每秒捕捉图像。我正在使用 phonegap Camera API 来捕获图像并且它工作正常。不,我需要在不按捕获按钮的情况下每秒捕获图像。可能吗?
谢谢
您可以使用NSTimer:
myTimerShoot = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(mySnapshotMethod) userInfo:nil repeats:YES];