How To Use Perfom Selector In Swift Ios/Iphone

NSTimer.scheduledTimerWithTimeInterval(delay, target: self, 
selector: "onFlip", userInfo: nil, repeats: false)
 
 
func performFlipOnDelay() {
  let delayInSeconds = 1.0
  let delay = dispatch_time(DISPATCH_TIME_NOW, Int64
 (delayInSeconds * Double(NSEC_PER_SEC)))
  dispatch_after(delay, dispatch_get_main_queue()) { 
     onFlip();
  }
} 

Popular posts from this blog

How to Use pagination ScrollView in Swift

UISearchBar search text color , background color swift 3

How To Add Multiple Line in Lable in Swift Ios