# iOS: incorrect \`isTorchOn\` after switching camera

**URL:** <https://community.wowza.com/t/ios-incorrect-istorchon-after-switching-camera/51602>\
**Category:** Wowza GoCoder SDK\
**Created:** [July 11, 2018, 12:38pm UTC](https://community.wowza.com/t/ios-incorrect-istorchon-after-switching-camera/51602 "2018-07-11T12:38:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_vv](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Alex\_vv](https://community.wowza.com/u/Alex_vv)\
**Post date:** [July 11, 2018, 12:38pm UTC](https://community.wowza.com/t/ios-incorrect-istorchon-after-switching-camera/51602/1 "2018-07-11T12:38:49Z")

</div>

In case you’re currently using back camera on iPhone device  
then turn flash on `WOWZCamera.isTorchOn = true`  
then switch to front camera (which doesn’t have flash) and again to back camera `WOWZCameraPreview.switchCamera()`  
the value of `WOWZCamera.isTorchOn` is still true but actual device doesn’t have flash on.
