I know the difference between class methods and object methods but I am not clear for why we use class methods in iOS? can anyone give me example so I can understand that..??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Class methods are used for library routines. To access these methods one do not have to create its object.
For example, Some times it gives you easy initializers to create an object.