Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NSTimer alternative that doesn't retain the target

License

Notifications You must be signed in to change notification settings

LLLhao/HWWeakTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

HWWeakTimer

Description

NSTimer alternative that doesn't retain the target.

How to Use

You can create a NSTimer with target and selector and the NSTimer will not maintain a strong reference to target:

+ (NSTimer *) scheduledTimerWithTimeInterval:(NSTimeInterval)interval
 target:(id)aTarget
 selector:(SEL)aSelector
 userInfo:(id)userInfo
 repeats:(BOOL)repeats;

Or you can use block to create a NSTimer:

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval
 block:(HWTimerHandler)block
 userInfo:(id)userInfo
 repeats:(BOOL)repeats;

License

MIT

About

NSTimer alternative that doesn't retain the target

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 83.8%
  • Ruby 16.2%

AltStyle によって変換されたページ (->オリジナル) /