title: UINotification selecting from handleActionWithIdentifier display specific viewController
body: <p>I am new to iOS programming and I only understand swift language for now. For my app, I have set up user, local and remote notifications. The local notifications have 2 actions, 1 to dismiss and the other is to direct the user to a specific viewController. </p>
  
  <p>My viewController hierarchy to the specific viewController I want to display is tabBarController -> (2nd tab) tableViewController -> (one of the many tablecells) viewController </p>
  
  <p>After Richard's suggestion, I have simplified my code with the above hierarchy. I have performed a background fetch to my server in response to a remote push notification and save content locally before creating a local notification to inform the user. I have managed to set up to the point where I guide the user to the correct Tab on the tabViewController using <code>self.window?.rootViewController.selectedIndex = 1</code> within <code>application:handleActionWithIdentifier</code> in App delegate.</p>
  
  <p>How do I proceed with selecting the correct tablecell assuming that the local notification holds an index that can be used?</p>
  
  <p>Edit: 
  After some tinkering, I managed to get the viewController I wanted to be displayed.</p>
  
  <pre><code>if var tabb = self.window?.rootViewController as? UITabBarController {
         tabb.selectedIndex = 1
         var controllers = tabb.childViewControllers
         for controller in controllers {
             if let navcon = controller as? UINavigationController {
                      if let tblvc = navcon.childViewControllers.first as? QuestionnaireTableViewController {
                          tblvc.becomeFirstResponder()
                          tblvc.moveUserToQuestionnaire(questionID)
                      }
                  }
  
              }
          }
  
  
  func moveUserToQuestionnaire(questionID : String) {
      var list = questionnaireObj.getQuestionnaireListData()
      for item in list {
          var selected = item["questionnaire_id"] as! NSString as String
          if selected == questionID {
              selectedUserID = item["study_id"] as! String
              selectedReplyBatchID = item["reply_batch_id"] as! NSNumber
              selectedQuestionnaireID = questionID
              performSegueWithIdentifier("SelectQuestionnaire",sender:self)
              break
          }
      }
  }
  </code></pre>
  
  <p>If this is a correct method to use, please inform me. Thanks! Hope it also helps someone in the process. =)</p>