Is it possible to define classes at run time in objective-c?
E.g. I receive an XML file, that defines an object and create it and use it in run-time?
Is it possible to define classes at run time in objective-c? E.g. I receive
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.
Yes, check this code snippet out, I created a class here, using only C methods, and one protocol definition (for simplicity when making message calls)…
MyCObject.h
MyCObject.m
Usage: