AVFoundation.Framework
->のサンプル コードを調べているところですAVSimpleEditoriOS
が、理解できない次の行が見つかりました。
static void *AVSEPlayerItemStatusContext = &AVSEPlayerItemStatusContext;
static void *AVSEPlayerLayerReadyForDisplay = &AVSEPlayerLayerReadyForDisplay;
以下を検討してください
static void *AVSEPlayerItemStatusContext = nil;
static void *AVSEPlayerLayerReadyForDisplay = nil;
2 行の上で、これらが 2 つの静的な void/ジェネリック ポインターであり、派手な名前が付いていることがわかります。
その2行に戻って、ここにもう一度貼り付けます。
static void *AVSEPlayerItemStatusContext = &AVSEPlayerItemStatusContext;
static void *AVSEPlayerLayerReadyForDisplay = &AVSEPlayerLayerReadyForDisplay;
上記は、それ自体の参照を格納する2つの静的void /ジェネリックポインターを意味しますか?なぜそれがどのような意味で必要なのですか?
そのようなコーディングパターンを学ぶためのガイドはほとんど必要ありません。知識お待ちしております。