i want to create custom object to get set value on it.
-(id)initWithURLString:(NSString *)url
{
if (self = [super init])
{
self.XXX = XXX;
self.YYY = YYY:
}
return self;
}
until here i am ok, i can set / get when i call my custom class. however i need more detailed one. i want to add sub keys to my object variables as like.
myObj.XXX.x
myObj.YYY.y
also i want to set / get sub keys.
any idea much appreciated.
thank you.
In that case, you need the type of XXX to have its own properties.
For instance,
An example subtype interface:
And an example interface for your main type: