所以我打开了游乐场,我只是想添加一个简单的UIButton(或简单的UIView)用于测试目的.我不能让它显示.这是我到目前为止:
import UIKit var uiButton = UIButton.buttonWithType(UIButtonType.System) as UIButton uiButton.frame = CGRectMake(0,100,100) uiButton.setTitle("Test",forState: UIControlState.Normal); //self.view.addSubview(uiButton) <-- doesn't work
你们知道我做错了吗?谢谢