# Runloop
**Repository Path**: ysys.oschina.net/Runloop
## Basic Information
- **Project Name**: Runloop
- **Description**: RunLoop 学习
- **Primary Language**: Objective-C
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2016-04-15
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#Runloop 事件驱动 运行环
RunLoop相关类:
CFRunLoopRef
1:CFRunloopModeRef:代表RunLoop的运行模式
一个RunLoop包含多个Mode 一个mode可以包含多个 source/timer/observer
每次RunLoop运行时,只能指定一个mode 这个mode==currentMode
切换mode 需要退出RunLoop 在重新指定一个mode进入
defalutMode APP默认mode
UITrackingRunLoopMode scrollView滚动界面跟踪mode
kCFRunLoopCommonMode:占位mode 不是一个真正的mode
标记为common的mode有:defalutMode UITrackingRunLoopMode
2:CFRunloopSourceRef
3:CFRunloopTimeRef:基础时间的触发器 理解为NSTime
4:CFRunloopObserverRef