InterfaceBuilder,更改视图层次结构并保留约束

时间:2015-11-27 03:01:32

标签: ios xcode interface-builder

我有

if sum(self.TTT[i][i] for i in (0, 1, 2, 3, 4, 5)) in (-3,3):
        for i in range(-3,3):            
            self.label['text']=('0 You WIN!')
            self.end() 
if sum(self.TTT[i][i] for i in (0, 1, 2, 3, 4, 5)) in (-105,105):
        for i in range(-105,105):            
            self.label['text']=('- You WIN!')
            self.end()
if sum(self.TTT[i][i] for i in (0, 1, 2, 3, 4, 5)) in (-300,300):
        for i in range(-300,300):            
            self.label['text']=('X You WIN!')
            self.end()

我想将其更改为

viewcontroller - scrollview - child views

为(scrollview - 子视图)创建了许多约束 推荐的更改层次结构的方法是什么?

1 个答案:

答案 0 :(得分:0)

我相信你有:

Your version

只需将您的scrollView复制到另一个viewController即可。然后用UIView替换你的scrollView,最后将scrollView复制回子视图。