Skip to content

Instantly share code, notes, and snippets.

@DonMag
Last active November 28, 2016 21:58
Show Gist options
  • Select an option

  • Save DonMag/43657939795769b87145f6920d0fa2e0 to your computer and use it in GitHub Desktop.

Select an option

Save DonMag/43657939795769b87145f6920d0fa2e0 to your computer and use it in GitHub Desktop.
case "record":
self.flagAutoRecord = true
if let tabBarController = self.window!.rootViewController as? UITabBarController {
if tabBarController.selectedIndex == 2 {
let vc = tabBarController.selectedViewController as! DictateViewController
vc.performSelector(#selector(DictateViewController.buttonMic(_:)), withObject: nil, afterDelay: 0.1)
} else {
tabBarController.selectedIndex = 2 //main Dictate screen
}
}
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment