Bring deeply placed subview to the very front
ios, objective-c, subview
Solution
You could try placing it on the window itself:
[[UIApplication sharedApplication].keyWindow addSubview: Subsubsubview1];
Or use the following methods to help with reordering:
insertSubview:atIndex:
insertSubview:aboveSubview:
insertSubview:belowSubview:
Problem
I have this order of subviews: - Parent View Controller - Subview 1 - Subview 2 - Subsubview 1 - Subsubview 2 - Subsubsubview 1 Now my need is to bring the very deep Subsubsubview 1 to the very front of the screen. I looked through the documentation and `bringSubviewToFront` may not work here as it only brings the subview to front regarding to his parent. Bringing the parent(Subsubview 2) to front along with it is not an option because it needs to stay below Subview 2. Reordering is almsot impossible, it is a graphics dependant order and has a lot of aniamtions binded to it.