i have created one view Controller(A) and this controller is using as a view in my app means i am adding view controllers view property to other view controller(B) view property.
in this case should i release A or their view after adding to b ……..??
or relese A controller in dealloc method ???
i have created one view Controller(A) and this controller is using as a view
Share
If you are adding this view as subview of the parent view using
addSubview:method and if you have some actions performed on the subview’s view controller class I think it would be better to release it indealloc. If you don’t have any actions then it wont do any harm if youreleaseit immediately. But I dont think that will be the case because if you have used view controller then it should contain some actions if not you could have chosen UIView instead. So I think releasing indeallocis better.