-(void)add
{
Myview *optionV =[[Myview alloc] initWithFrame:CGRectMake(80,80, 590, 25)];
[interactiveView addSubview:optionV];
//interactiveView is UIView added from the nib and has an IBoutlet.
}
now if add method is being called 10 times. How is the memory being managed. what is the best way with out creating @property for Myview.
ARC adds a simple release at compile time, so your code will be rewritten in this way: