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

matlab - error with cyclic autocorrelation function -

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

c# - What is a good .Net RefEdit control to use with ExcelDna? -