Friday 15 June 2012

cocoa - Autolayout view swapping -


While swapping a second view with the view of another sun, is it necessary to reapply the obstacles? Do the obstacles need to be removed which is applied to a scene that is removed?

Will they continue automatically? Obstacles are the "part" of a scene when you get a view ( removeFromSuperview

Compare it to the frame of a scene: Even when you remove a scene from your supervision, the frame will remain the same. When you add the scene back as a subview, it will be in the same condition as it was before.

So, to answer your question: When you "swap" a scene with another view, there will be no obstruction in the new scene, it will not work:

  [To add new view: [Oldview barriers]];   

This will be the cause of a "Do not see in the hierarchy" error, because compulsions are related to oldView .

No comments:

Post a Comment