Xcode 8 Swift 类似插件方法

Xcode8 Swift使用技巧

1 option + cmd + / 可以弹出注释

2 color 然后加 enter 可以弹出颜色选择

3    #FIXME:  警告

4   #MARK: 备注信息

5   #TODO:  要做的

import UIKit
class ViewController: UIViewController {
//option + cmd + / 可以弹出注释
/// <#Description#>
override func viewDidLoad() {
super.viewDidLoad()
// color 然后加 enter 可以弹出颜色选择
view.backgroundColor=#colorLiteral(red: , green: 0.2527923882, blue: , alpha: )
let _img = UIImageView(frame: CGRect(x: , y: , width: , height: ))
// #FIXME: 警告
_img.image=#imageLiteral(resourceName: "haha")
view.addSubview(_img)
// Do any additional setup after loading the view, typically from a nib. }
// #MARK: 备注信息
override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated.
}
// #TODO: 要做的 }
上一篇:修改CKplayer.js 源码解决移动端浏览器全屏不能限制快进的问题


下一篇:Perfmon - Windows 自带系统监测工具(转)