iphone - Is it possible to add an object to a specific autorelease pool? -


डॉक्स में एक addObject है: NSAutoreleasePool की विधि।

मैंने इसके बारे में सोचा:

NSString * myString = [[NSString alloc] initWithCString: "क्या यह काम करता है?"]; [पीओएल एडऑब्जेक्ट: माइस्ट्राइंग]; [अन्यपूल addObject: myString];

क्या यह संभव है? मैं हमेशा पढ़ता हूं कि मैं ऑटोरिएव पूल स्टैक पर केवल सबसे ऊपरी भाग में ऑब्जेक्ट जोड़ सकता हूं।

हाँ, आप ऐसा कर सकते हैं। लेकिन आपको कभी नहीं करना चाहिए ऐसा करने के लिए स्पष्ट रूप से कोई कारण नहीं है।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -