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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -