uiview - remove view from supper view ios -


I have a question about removing a subview from Supper View: now there is a subview of my name: Subview1 and then I add this subview to 2 other views:

[supperview1 addSubview: subview1]

and

[Suppertview2 addSubview: subview1]

... I know the method removeFromSupperview to remove only one subview from supperview, but In this case I want to remove subview1 of Supperview1 but still suppress the appearance of supperview2 It is ... how can I do this?

You have the code wrong.

If you use

  [supperview1 addSubview: subview1]   

and

 

And

    

subview1 wil only added to suppertview2 So, subview1 only suppertview2s Subview

Apple has said:

The view is only a supervision if There is already a supervision in the scene and it is not the view receiver, then this method can be seen from the previous observation by making the receiver his new supervisor Sector removes.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -