Tag

NSTimer

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jun 14, 2023 · Mobile Development

Understanding CADisplayLink, NSTimer, and RunLoop in iOS: Implementation, Issues, and Solutions

This article explains the principles, usage, and internal mechanisms of CADisplayLink and NSTimer in iOS, compares their advantages and drawbacks, discusses common pitfalls such as retain cycles, explores RunLoop modes and sources, and provides code examples and solutions for reliable timer handling.

CADisplayLinkMobile DevelopmentNSTimer
0 likes · 24 min read
Understanding CADisplayLink, NSTimer, and RunLoop in iOS: Implementation, Issues, and Solutions
JD Retail Technology
JD Retail Technology
Mar 30, 2020 · Mobile Development

Understanding iOS RunLoop: Concepts, Functions, and Practical Applications

This article explains the iOS RunLoop mechanism, its role in keeping apps responsive, how it interacts with UIApplicationMain, timers, thread management, and various RunLoop modes, and provides practical examples for using RunLoop to maintain thread life cycles and improve UI performance.

Event LoopMobile DevelopmentNSTimer
0 likes · 10 min read
Understanding iOS RunLoop: Concepts, Functions, and Practical Applications
JD Retail Technology
JD Retail Technology
Jan 10, 2020 · Mobile Development

Understanding iOS Timers: NSTimer, CADisplayLink, and GCD Dispatch Sources

This article explains the three main iOS timer mechanisms—NSTimer, CADisplayLink, and GCD dispatch sources—detailing their creation methods, differences, common pitfalls such as RunLoop mode and thread issues, and practical solutions for accurate scheduling.

CADisplayLinkMobile DevelopmentNSTimer
0 likes · 14 min read
Understanding iOS Timers: NSTimer, CADisplayLink, and GCD Dispatch Sources