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 trialRaunak Mohanty
1,326 PointsHow do I know when to call a method via Class and when to use instance of the class in documentation ?
I am coming from Microsoft .Net world and in Visual Studio IDE, dot operator (IntelliSense) only shows functions depending on whether we are using dot operator on class or instance of the class. How do I make out from the documentation that the "downloadTaskWithURL" function needs to called from the instance of "NSURLSession" and not on "NSURLSession" class ? Thanks in advance
1 Answer
Raunak Mohanty
1,326 PointsNever mind !! Figured it out.
Functions that are called at class level are preceded by "class" in the documentation