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

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

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