ios - How to remove everything from superview -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 14 उत्तरों

व्यक्तिगत रूप से RemoveFromSubview हर चीज के लिए मैं निकालना चाहता हूं, मैं जानना चाहूंगा कि क्या ऐसा कुछ है जो सब कुछ को पर्यवेक्षण से निकालता है।

मैं इस के लिए श्रेणी विधि का उपयोग कर रहा हूं

  @interface UIView (अतिरिक्त) - (शून्य) हटायें allSubviews @end @implementation UIView (अतिरिक्त ) - (शून्य) निकाले सभी SUBviews {के लिए (UIView * subviews में subviews) [subview removalFromSuperview]; } @end  

तो आप कॉल कर सकते हैं

  [self.superview removeAllSubviews];  

पर्यवेक्षण से सब कुछ निकालना।


Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -