मैंने पहले से ही इसी तरह के एक प्रश्न पूछा, लेकिन मैं अभी भी नहीं देख सकता मुसीबत?ओबीजे-, 'स्व' का उपयोग '[' सुपर या स्वयं) init के परिणाम पर सेट नहीं किया गया है ...] '
-(id)initWithKeyPadType: (int)value
{
[self setKeyPadType:value];
self = [self init];
if(self != nil)
{
//self.intKeyPadType = value;
}
return self;
}
- (id)init {
NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init]
autorelease];
decimalSymbol = [formatter decimalSeparator];
....
चेतावनी चेतावनी का मतलब है कि यह क्या कहते हैं ऊपर Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
अगर मैं सही अपने कोड को समझते हैं, आप [सुपर init] और इस गंदगी कर सकते हैं अपनी स्मृति आवंटन –
बुला वह बुला नहीं कर रहा है सुपर init कहीं भी – jrturton