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.
私は持っている;
CGContextRef コンテキスト = UIGraphicsGetCurrentContext();
ここで、コンテキストの幅/高さ (ピクセル単位) を知りたいです。これを行う方法はありますか?
その情報はCGContextRefオブジェクトからではなく、周囲のframeオブジェクトから取得できます。
CGContextRef
frame
self.frame.size.width self.frame.size.height