torchLevel KVO - iOS
问题 I am using AVFoundation in iOS to manipulate the torch on an iPhone 6. I need to know the current torch level. I've read in AppleDevLib that it's possible to observe the current torch level using KVO, but I've failed to implement that. Can you put down some sample that detect change of torch level and then changes a variable (like label on screen etc.) please? It will help me a lot. 回答1: It took a while for me to figure out how to do this but I believe this KVO code will work for you. I haven