ios - Deep copy UIView subviews to one UIView -


I need to remove all Nested SubViews (from multiple views) and they have a UIView level 1 level deep. NSArray * contentViews; // Ideas with complex nesting of subViews UIView * flatView; // All SubViews but as a parent's simple subtitle [Self Deep Copy All Proof: [ContentViews [i ++] SubViews for New View]: Flat View];

My problem is how can I get the right origin in relation to flatView? AllSubviews: (NSArray *) SubViews NewView: flatView {[SubViews Enumerated Objects Using Block: ^ (ID OGJ, NSUnitezer IDX, Ball * Stop) {CGRact frame = [ (UIUU * OBG frame); Frame.origin.x = ?? [(UIView *) Oz set frame: frame]; [Flatview Aidview: OBG]; NSArray * subs = [(UIView *) OBG SubViews;; [Subs count]> 0} [[Successful deep comment all sessions: subs newView: flatview];}}];}

You < Code> UIView . For example, try your ??? line, try:

  frame.corin = [((UIView * obj). Convert superview: frame. FlatView];   

If the original view is still connected to its original supervision, and the flatview hierarchy of the same window , These conversion methods will be able to get you the relational geometry that I think you are seeing again.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -