title: how to refresh the app on the button click
body: <p>In this button action i need to go to the appdelegate. How to go.</p>
  
  <p>I have the button in the viewcontroller .</p>
  
  <pre><code>@IBAction func refreshButton(_ sender: AnyObject) {
  }
  </code></pre>
  
  <p>In my app delegate</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
  
      // Override point for customization after application launch.
  
      let PAGE1model:NH_HomeModel = HomeModel(nameText: "", contactnoText: "", emailidText: "")!
      let questionlistdataSourceModel:QuestionDataSourceModel = QuestionDataSourceModel(array: nil)
      let questionlistviewModel:QuestionViewModel = QuestionViewModel(withdatasource: questionlistdataSourceModel, withmodel: PAGE1model)
  
      let dummyDataSource:DummyDataSourceModel = DummyDataSourceModel(array: nil)
      let dummyDataViewModel:DummyDataViewModel = DummyDataViewModel(withdatasource: dummyDataSource, withmodel: PAGE1model)
  
      let questionlistviewController:QuestionViewController = NH_QuestionViewController(nibName: "QuestionViewController", bundle: nil, withViewModel: questionlistviewModel, withDummyDataViewModel: dummyDataViewModel)
      navController = UINavigationController()
  
      self.navController!.pushViewController(questionlistviewController, animated: false)
  
      self.window = UIWindow(frame: UIScreen.main.bounds)
      self.window!.rootViewController = navController
      self.window!.backgroundColor = UIColor.white
      self.window!.makeKeyAndVisible()
  
      return true
  }
  </code></pre>
  
  <p>On the button click i need to refresh the app .It should go to the app delegate.How to implement it?How to do in the refresh button.ON the refresh button clicking i need to go to the app delegate .</p>