Retainable 0.5.0×由 Scott Yelvington 维护。安装指南×Retainable 安装指南您希望将以下类似内容添加到您的 Podfile 中:target 'MyApp' do pod 'Retainable', '~> 0.5' end然后在终端中运行 pod install,或从 CocoaPods.app 运行。或者为了测试运行,运行以下命令pod try Retainable参见 PodspecGitHub 仓库CocoaPods.org 上的页面Retainable 0.5.0作者:Scott Yelvingtonscottyelvington/retainableGitHub 仓库retainable 简化闭包模板的案例研究