Swift -----小记

  1、 @objc 作用

    1 fileprivate 或者 private  保证方法私有 能在同一个类 或者 同一个文件(extension)中访问这个方法 如果定义为private  那么只能在一个类中访问 不能在类扩展中访问

    2 允许这个函数在“运行时”通过oc的消息机制调用

2、创建pch文件,
      New File 下选择Swift File    ---------------效果和pch文件一样
 
      定义里边的宏定义 
  let kScreenHeight = UIScreen.main.bounds.size.height
    let kScreenWidth = UIScreen.main.bounds.size.width
 
原文地址:https://www.cnblogs.com/shizhiliblog/p/9203901.html