iphone - How to record screen when app is in Background ios 8.4(Swift) -
i not able record screen in swift app once home button of iphone clicked(i.e. when app suspended)
explanation:
in swift app,i have created buttons record/stop, declared object(myscreenview) of bridged objective c class iboutlet , connected view. when click on record button,a bridged objective c method called records screen.(the code follows)
override func viewdidload() { super.viewdidload() } @ibaction func recordaction(sender: anyobject?){ myscreenview.startrecording() } @ibaction func stopaction(sender: anyobject?){ myscreenview.stoprecording() }
from above, able record screen when app in foreground when home button pressed stops recording.
actions taken:
- checked audio , airplay , background fetch checkbox in app capabilities
- set "no" "application not run in background” info property.
please advice done record screen when app pushed background.
this isn't possible. once app closed, cannot execute pretty code (with exceptions of push notifications).
application running in background reserved basic functions (not camera recording - im guessing because pose security risk).
Comments
Post a Comment