I have this problem, i am moving a 'A' View on screen wherever user want's to move (Which is added from storyboard), i am moving View using event-handling methods and that is working fine,
What problem i have now is, when i add new 'B' View (Programatically) to ViewControllers view, my 'A' View which i have moved to some other position, moves automatically to its default position. (At the position where it is on storyboard).
So i think, i have figured out the reason that whenever we add new view to the view hierarchy viewWillLayoutSubViews: get's call and its reposition the views to their default. So i want to know that how can i prevent this?
See below image for more details:
Note:
Both A and B (Orange and Red are UIView)
Orange view is added from storyboard and red view is added programatically.
Also see my previous question about the similar kind problem,
Any help would be appreciated.