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. 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 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. 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];
??? line, try:
frame.corin = [((UIView * obj). Convert superview: frame. FlatView];
Comments
Post a Comment