闭包可以作为Handler来使用。

When creating a UIAlertAction object, we can specify a block of code as a handler.
The block of code will be executed when a user selects the action.

评论

此博客中的热门博文

viewWillAppear不执行的解决办法

图片旋转时的边缘抗锯齿的三种方法以及性能

iOS中使用xpc/xpc.h