Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdamon patron
4,692 PointsFacebook Class or Facebook Singleton
i was reading about Singleton's in iOS and was wondering which is better a separate class which shares the info with other classes or a singleton, because i have just finished doing a separate Facebook Class and tried to share the user's info like user.name user.id (name, pic) with other classes and i'm not able to i need some help or a tutorial on sharing info, well i have done with the profileViewController but thats the only view i can share the info with i'm not able to put the name or the pic in the slide menu or the settingViewController i have been looking around for some help but cant find i'm just stuck on the issue. I want to have a separate class that gets called from the AppDelegate once the app is loaded so its only called once and everything is set i mean i login and then the name and pic get sent to profile but no where else so please some help