![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
文章平均质量分 66
ChrisyehGone
I Love IT!
展开
-
Swift 静态属性 及其用法(全局常量)
首先要说的是 Swift 中 使用三种方法来实现静态属性: 1.结构体静态属性 2.枚举静态属性 3.类静态属性 这三种方法的定义如下所示: //第一种:结构体方式 struct 结构体名 { static var(或let) 存储属性 = "hello world" static var 计算属性名 : 数据类型 { get {原创 2015-10-23 11:59:16 · 740 阅读 · 0 评论 -
1.Mac 下搭建React-Native环境
第一步:安装Homebrew 安装命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 查看是否安装成功: brew -v 第二步:安装Node.js(4.0以上版本) 下载地址:https://nodejs.org 第三步:安装Re原创 2016-06-06 20:20:25 · 385 阅读 · 0 评论