Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここで少し混乱しています...複数のビューを持つアプリがあり、各ビューは共通の GKSession を共有する必要があります。これをシングルトンパターンで実装したいと思います。
私の混乱: シングルトン クラスは GKSession のサブクラスである必要がありますか、それともシングルトン クラスは GKSessionDelegate である NSObject である必要がありますか? 私は、クラスをデリゲートとして実装するのが適切なパターンであると信じがちです。
ありがとう...