swift2 - Utitableview extension block function not called in swift 2 -


i have made extension of uitableview.

extension uitableview{     override public func awakefromnib() {         super.awakefromnib()     }      func reloaddata(completion: ()->()) {         uiview.animatewithduration(0, animations: { self.reloaddata()             })             { _ in completion() }     }  } 

in swift < 2.0 work call:

self.detailtableview.reloaddata{  //my code } 

in swift 2.0 function not enter inside block. try call function syntax:

but have experience same issue.

self.detailtableview.reloaddata({ () -> () in  //my code }) 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -