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
Post a Comment