Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 1 replies, 0 views
This is due to your function showError() being static (so a Class function), but present() from UIViewController is an instance method.
The showError() function should not be static. Try removing the static keyword, then it should work.