Swift: Present UIAlertController in closure -


we trying present uialertcontroller within closure error "implicit use of self in closure, use self. make capture semantics specific". correct syntax here?

enter image description here

you need refer "self" explicitly when talking object's instance variables inside block.

self.showviewcontroller(...)


Comments

Popular posts from this blog

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -

github - Git errors while pushing -

c++ - How can I delete a QSharedPointer -