objective c - Enlarging image with a button? -


  - (IBAction) बड़ा {must.bounds.size = CGSizeMake (must.bounds.size.width +5.0 , Must.bounds.size.height +5.0); }   

यह कोड I इनपुट है, लेकिन मुझे यह कहने में त्रुटि मिलती है कि अभिव्यक्ति असाइन करने योग्य नहीं है। एक uiimageview होना चाहिए। मैं प्रत्येक संपत्ति (ऊँचाई और चौड़ाई) 5.0 करना चाहता हूं जब तक मैं बटन दबाऊं। मैं यह कैसे कर सकता हूँ।

आप शायद चाहते हैं कि सीमा के स्थान पर फ़्रेम सेट करना है। ऐसा कुछ करें: <पूर्व> सीजीआरटी फ्रेम = चाहिए.फ्रेम; फ्रेम.size.width + = 5; फ्रेम.size.height + = 5; Must.frame = फ्रेम;

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -