A newbie question.
For a UIView where I adds several objects [UIButton, UILabel, UIImage etc] using addSubView, if at a later time when I call
removeFromSuperView for that UIView, does this will also release the objects that I have added to this UIView?
Or do I need to run a while loop for subViews of UIView to individually release these objects.
The nature of objects is a mixed one i.e. some objects are local [in the method where addSubView is called while others are declared at INterface level].
I am asking this because I have to create a UIView with paging buttons [move next, move previous] that will pick up a group of rows from an array and show them in terms of UILabel and UIButtons. When the user click on next or previous buttons then the current page is clared and the next group is displayed.
I have to use this option since I need to show multiple paging views on a single main view. Each paging getting its group from a different array.
For a UIView where I adds several objects [UIButton, UILabel, UIImage etc] using addSubView, if at a later time when I call
removeFromSuperView for that UIView, does this will also release the objects that I have added to this UIView?
Or do I need to run a while loop for subViews of UIView to individually release these objects.
The nature of objects is a mixed one i.e. some objects are local [in the method where addSubView is called while others are declared at INterface level].
I am asking this because I have to create a UIView with paging buttons [move next, move previous] that will pick up a group of rows from an array and show them in terms of UILabel and UIButtons. When the user click on next or previous buttons then the current page is clared and the next group is displayed.
I have to use this option since I need to show multiple paging views on a single main view. Each paging getting its group from a different array.