xcode - Memory leaking problem in iphone app -



xcode - Memory leaking problem in iphone app -

i created 1 method below one:

+ (jsonmanager *)getinstance { if (!instance) { instance = [[jsonmanager alloc] init]; } homecoming instance; }

and need utilize same method in different view...if release 1 first view working fine , if trying navigate sec view app crashing.

can 1 please allow me know need release object

thanks in advance

this appears singleton. should not releasing in first view. want utilize same instance throughout lifetime of application.

if not requirement, should provide mechanism set instance variable nil pointing deallocated object 1 time release it. think not case.

iphone xcode memory-leaks

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -