I have two classes person and address. These two classes are subclassed from PFObject. How can I make a relation between these classes? Below is the code:
Person:
@interface Person : PFObject<PFSubclassing>
@property(strong,nonatomic)NSString *lastName;
Address:
@interface Address : PFObject<PFSubclassing>
@property(strong,nonatomic)Person *person;
@property(strong,nonatomic)NSString *lastName;
In Address file, I have done this to make a relation but it shows me null value: Both of them are created as singleton because I wanted to make relations.
address.person.lastName= person.lastName;
Please help me how to make the relation. Any help is appreciated. Thanks.