Why even use GCD? You could just use an NSTimer
and invalidate it when your app returns to the foregound.
More Related Contents:
- In Swift how to call method with parameters on GCD main thread?
- Should IBOutlets be strong or weak under ARC?
- Proper way to exit iPhone application?
- Delete/Reset all entries in Core Data?
- Setting action for back button in navigation controller
- How do you load custom UITableViewCells from Xib files?
- Hide separator line on one UITableViewCell
- How do I make UILabel display outlined text?
- Counting the number of lines in a UITextView, lines wrapped by frame size
- Segue to another storyboard?
- Using a custom image for a UITableViewCell’s accessoryView and having it respond to UITableViewDelegate
- Detecting whether or not device support phone calls?
- How to change text on a back button
- Send a file as attachment in objective c
- KVO and ARC how to removeObserver
- How to detect iphone is on silent mode
- How to add background image on iphone Navigation bar?
- How to specify size for iPhone 6/7 customised edge-to-edge image?
- Cocoa-Touch: How do I see if two NSDates are in the same day?
- Supporting iPhone 6 and iPhone 6+ with different launch/splash screen image for iPad Portrait and Landscape orientations
- Ask for User Permission to Receive UILocalNotifications in iOS 8
- Creating iPhone Pop-up Menu Similar to Mail App Menu
- rotate a UIView around its center but several times
- Dismissing both UINavigation views and Modal views at once programmatically
- Rounded Corners on UIImage
- How to hide UITabBar?
- UISearchController persisting after segue
- iOS 8 keyboard hides my textview
- How to convert UIColor value to a named color string?
- UIColor colorWithRed:green:blue:alpha: always returns white unless one argument is 0