I try to switch from one screen to another through the service, in the service code:
static func openBannerWebView(_ nav: UINavigationController) { let vc = BannerViewController() nav.pushViewController(vc, animated: true) } This code is called like this:
if let nav = self.vc?.navigationController { PostService.openBannerWebView(nav) } BannerViewController:
import UIKit import WebKit class BannerViewController: UIViewController { //var url = "" //@IBOutlet weak var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad(); } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning(); } } It also created an empty BannerViewController.xib with its specified FileOwner : BannerViewController
When switching to debug, it writes:
2018-11-14 13:00:00.787712+0300 MyApp_Debug[8610:80602] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution. What did I miss? Inside xib only label with default text