06.08.2012 Views

Fugenx Technologies Private Limited

Fugenx Technologies Private Limited

Fugenx Technologies Private Limited

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Singleton<br />

A basic implementation of the +sharedInstance method might be<br />

like this:<br />

+ (MYDataManager *)sharedInstance {<br />

static MYDataManager *myInstance = nil;<br />

if (!myInstance) {<br />

myInstance = [[[self class] alloc] init];<br />

}<br />

return myInstance;<br />

}<br />

© 2011, FuGenX <strong>Technologies</strong> Confidential<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!