Does UIView's removeFromSuperView method remove the UIView from memory? I just want to be sure that the view is no longer using any memory?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Converting (u)int64_t to NSNumbers
- Can keyboard of type UIKeyboardTypeNamePhonePad be
UIView
retains its subviews, so when you call-removeFromSuperview
method then your view object is released.So if everything else is ok with your memory management and your view is not retained by anything else then yes - your view should be deallocated and removed from memory.
Possible example when simply removing view from superview may not be sufficient to deallocate it can be view that has outlet connection and declared property for it with retain attribute - in that case it is retained by controller when it is being loaded from nib file and you may need to release that view for that case:
Yes. Once
removeFromSuperView
method is called, that view is also released from memory.If you want to confirm with Apple's documentation, here is the link.