ASi

2016-07-05から1日間の記事一覧

GCD の timer

iOS

fire した後でも cancel すると cancel handler が呼ばれる。fire のハンドラからでも cancel できる。 dispatch_source_t createTimer(int msec, void(^fired)(), void(^canceled)()){ dispatch_source_t timersource = dispatch_source_create( DISPATCH_S…