简介: Interface Builder(IB)是Mac OS X平台下用于设计和测试用户界面(GUI)的应用程序(非开源).为了生成GUI,IB并不是必需的,实际上Mac OS X下所有的用户界面元素都可以使用代码直接生成:但IB能够使开发者简单快捷的开发出符合Mac OS X human-interface guidelines的GUI.通常你只需要通过简单的拖拽(drag-n-drop)操作来构建GUI就可以了.IB使用Nib文件储存GUI资源,同时适用于Cocoa和Carbon程序.在…
UIActivityIndicatorView override func viewDidLoad() { super.viewDidLoad() titleLabel.text = titleString // Do any additional setup after loading the view. //创建活动指示器 var activityView:UIActivityIndicatorView = UIActivityIndicatorView(frame: CGRectMake(…
原文地址:http://www.raywenderlich.com/86477/introducing-ios-design-patterns-in-swift-part-1 Update 04/22/2015: Updated for Xcode 6.3 and Swift 1.2. Update note: This tutorial was updated for iOS 8 and Swift by Vincent Ngo. Original Post by Tutorial team…