Xcode中调整控件叠放顺序

Nib可视化编辑器的调整很简单,不需要去点控件然后调整属性(属性里也没有index),只要在左边的Object列表里调整即可,需要浮在上面的控件往下拖即可。
另外一个方法是针对代码手工添加view的,上接口即可:
insertSubview:atIndex: See Also
– addSubview: – insertSubview:aboveSubview:
– insertSubview:belowSubview:
– exchangeSubviewAtIndex:withSubviewAtIndex:

Leave a Reply

Your email address will not be published.