Let's say I want to define a simple class, "Person." Something like:
Is it OK to use user interface objects in the Model? Is there some other, better way of attaching a user photo to each person?
Code:
class Person : NSObject
{
NSString *name;
int age;
UIImage *portrait;
}
Is it OK to use user interface objects in the Model? Is there some other, better way of attaching a user photo to each person?