Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 304 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Swift presentViewController

#11
Another possibility is that you do not have the XIB included in your Build target (which is what happened to me).

This could happen if you have a different target for Dev, Test & Release Builds (which you should have anyway).
Reply

#12
**Using Swift 2.1+**

let vc = self.storyboard?.instantiateViewControllerWithIdentifier("settingsVC") as! SettingsViewController
self.presentViewController(vc, animated: true, completion: nil)

[![enter image description here][1]][1]


[1]:
Reply

#13
Just use this : Make sure using nibName otherwise preloaded views of xib will not show :

`var vc : ViewController = ViewController(nibName: "ViewController", bundle: nil)` //change this to your class name

self.presentViewController(vc, animated: true, completion: nil)
Reply

#14
You can use below code :



var vc = self.storyboard?.instantiateViewControllerWithIdentifier("YourViewController") as! YourViewController;
vc.mode_Player = 1
self.presentViewController(vc, animated: true, completion: nil)
Reply

#15
Solved the black screen by adding a navigation controller and setting the second view controller as rootVC.

let vc = ViewController()
var navigationController = UINavigationController(rootViewController: vc)
self.presentViewController(navigationController, animated: true, completion: nil
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through