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.
NSView をサブクラス化して時計を作成しました。今、私はプログラムで多くの時計を作成し、タイムゾーンの値をすべての時計に渡したいと思っています。目的の timeZone 値を subClassed NSview に渡すにはどうすればよいですか。
クラスの .h に変数を作成するだけです。
@property (nonatomic, strong) NSString *timeZone
そして、時計を作成する場所を参照します。
myNewClock.timezone = "GMT"