Latest 0.2.0
Homepage https://github.com/sunbohong/NSTimer-SunTask
License MIT
Platforms ios 2.0
Frameworks Foundation
Authors

CI Status
Version
License
Platform

Demo说明

为了说明,本扩展没有导致内存泄漏,特地添加了FBMemoryProfiler进行展示。

运行 Demo 后,通过双指单击视图,可以初始化NSTimer并显示相关的视图,您可以在此基础上进行相关的操作。

通过点击展示内存占用的视图,您可以查看是否有循环引用产生。

请注意:
在 ARC 下面,因为 UITouch 实例会强引用 UIView。导致 UIView 延迟释放。本 demo 已经修改为MRR 环境进行展示。
您可以通过反注释源文件中与 subview 的代码,并修改为 ARC 环境来展示与该问题。

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

NSTimer-SunTask is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NSTimer-SunTask"

Author

sunbohong, [email protected]

License

NSTimer-SunTask is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NSTimer-SunTask",
    "version": "0.2.0",
    "summary": "u6269u5c55NSTimeru5bf9u5b9au671fu4efbu52a1u7684u652fu6301",
    "description": "u672cu5206u7c7bu7528u4e8eu6269u5c55NSTimeru5bf9u5b9au671fu4efbu52a1u7684u652fu6301",
    "homepage": "https://github.com/sunbohong/NSTimer-SunTask",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sunbohong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sunbohong/NSTimer-SunTask.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "2.0"
    },
    "source_files": "NSTimer-SunTask/Classes/**/*",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This