How do I get the size of an Iphone context -


मेरे पास;

CGContextRef संदर्भ = UIGraphicsGetCurrentContext ();

अब मुझे संदर्भ की चौड़ाई / ऊंचाई जानना है (पिक्सल में); ऐसा करने का कोई तरीका?

आप उस जानकारी को CGContextRef ऑब्जेक्ट, लेकिन आसपास के फ्रेम ऑब्जेक्ट से:

  self.frame.size.width self.frame.size.height  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -