Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
NSZamanlayıcı(GCKAdditions) Kategorisi
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bazı yararlı geliştirmeler ekleyen bir NSTimer kategorisi.
| + (NSTimer *) gck_scheduledTimerWithTimeInterval: |
|
(NSTimeInterval) |
interval |
| weakTarget: |
|
(id) |
target |
| selector: |
|
(SEL) |
selector |
| userInfo: |
|
(nullable id) |
userInfo |
| repeats: |
|
(BOOL) |
repeats |
|
|
| |
Zayıf bir hedefe sahip bir NSTimer oluşturur.
Zamanlayıcı ile hedefi arasında bir tutma döngüsünü önler. Zamanlayıcı etkinleştiğinde hedef serbest bırakılırsa zamanlayıcı otomatik olarak geçersiz kılınır.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["The document describes an NSTimer category enhancement called `gck_scheduledTimerWithTimeInterval`. This class method constructs an NSTimer with a weak target, preventing retain loops. It takes parameters for the time interval, target, selector, user info, and whether the timer repeats. If the target is released when the timer fires, the timer automatically invalidates itself. It adds the ability to use NSTimers without the risk of creating retain cycles.\n"]]