摘要: 常量&变量 什么是常量和变量 在Swift中规定:在定义一个标识符时必须明确说明该标识符是一个常量还是变量 使用let来定义常量,定义之后不可以修改 使用var来定义变量,定义之后可以修改 常量和变量的基本使用 import UIKit let a : Int = 10// 错误写法,当一个字段定义 阅读全文
posted @ 2016-11-15 20:48 BolingBoling 阅读(170) 评论(0) 推荐(0)
摘要: Swift初体验 Playground是什么? 从Xcode6开始出现(Swift开始出现) 翻译为:操场/游乐场 对于学习Swift基本语法非常方便 所见即所得(快速查看结果) 语法特性发生改变时,可以快速查看. Swift最基本的语法变化 导入框架 import UIKit 定义标识符时,必须声 阅读全文
posted @ 2016-11-15 20:47 BolingBoling 阅读(151) 评论(0) 推荐(0)
摘要: #import "SLRefreshHeader.h"@implementation SLRefreshHeader- (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { // 自动 阅读全文
posted @ 2016-11-12 09:57 BolingBoling 阅读(174) 评论(0) 推荐(0)