ios - PresentViewController Troubleshooting -


in swift app trying make button tap switches view controllers. code using:

presentviewcontroller(pyththeoremviewcontroller.self, animated: true, completion: nil) 

this returns error "cannot invoke 'presentviewcontroller' argument list of type')pyththeoremviewcontroller.type, animated: bool, completion: nil)

what mean , how fix it?

if viewcontroller-instance pyththeoremviewcontroller, remove self


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -