RunLoop 1.原理与作用: runloop其实是一个死循环;保证线程不退出;监听作用事件;runloop默认是不启动的; 2.App启动: 开启一条线程(主线程);开启线程的Runloop成为常驻线程;