【发布时间】:2017-12-13 09:56:37
【问题描述】:
我是 iOS 开发新手。
当我在 ViewController.swift 文件(UITextField 或 UILable 等)中创建任何内容时,它不会显示在 main.storyboard(或故事板预览)上
this is what the storyboard looks next to the simulation
模拟正是我想要的样子,但它与故事板完全不同
我使用 AutoLayout 创建了一个 UITextField,并通过代码中的插座连接它并对其进行了编辑,如下所示:
the code in ViewController.swift
我只想让故事板反映我在代码中所做的更改,并且看起来就像模拟器一样。
【问题讨论】:
标签: ios iphone swift xcode uiviewcontroller