- 博客(14)
- 收藏
- 关注
原创 封装AlertActionVIew底部弹框
下载地址:https://github.com/hanwanjie853710069/HJAlertActionVIew
2016-11-09 18:55:13 387
原创 swift 元组 数组 字典 简单方法实现 小结
var arra:[Int] = [1,2,2,5]//获取数组中元素的索引位置 如果没有这个元素则返回nil let oneInex = arra.index{ $0 == 5 }let twoInex = arra.index{ $0 > 10 }oneInextwoInex//数组筛选 arra.filter({$0 > 3})arra.firstarra.last//删除并返回数组的
2016-11-04 17:20:47 381
原创 swift 关于 尾随闭包 笔记
override func viewDidLoad() { super.viewDidLoad() self.weisuibibao(index: 12, bibao: { print("第二次") })}func weisuibibao(index:Int,bibao: (() -> ())? = nil ){ print("第一次") b
2016-11-04 11:22:54 1467
原创 swift 关于 CocoaPods引入Alamofire报警告问题
/要搜索的内容/重点内容 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES/要添加的内容/重点内容 $(inherited)
2016-11-04 10:54:15 1251
原创 swift 关于 switch 笔记
//什么时候可以不添加 default:enum en {case dddcase aaa}let type: en = .aaaswitch type {case .aaa:breakcase .ddd:break}let vegetable = “red pepper”switch vegetable {case “celery”:let vegetableComment = "Add
2016-11-03 17:18:25 235
原创 swift 关于字典和数组 笔记
/* * 可变数组 */ var array:[String] = []//增加 array.append(“1”)//删除 array.remove(at: 0)/* * 不可变数组 初始化之后 只能获取不能改变 */ let noArray = [1,2,2]/* * 可变字典 内容为无序 */ var dict = [1:32, 2:2, 3:3 ]/
2016-11-03 16:28:20 237
原创 swift 代理简单实现
// // HanJie.swift // RXFunction // // Created by 王木木 on 16/11/2. // Copyright © 2016年 王木木. All rights reserved. //import UIKitprotocol Delegate : NSObjectProtocol {func touchDidSelectRowAtIn
2016-11-02 17:18:28 431
原创 swift 关于protocol协议笔记实现
// // HanJie.swift // RXFunction // // Created by 王木木 on 16/11/2. // Copyright © 2016年 王木木. All rights reserved. //import UIKitprotocol protocolCase {func protocolCase()}extension protocolCa
2016-11-02 17:06:40 337
原创 RXSwift 关于使用textFiled的时候onCompleted 什么时间执行的问题
// // hanjie.swift // RXFunction // // Created by 王木木 on 16/11/2. // Copyright © 2016年 王木木. All rights reserved. //import UIKit import RxSwiftclass hanhanhan: UIViewController {let disposeBa
2016-11-02 14:37:39 804
原创 RXSwift tableview创建(二)
// // RXSwiftViewController.swift // RXFunction // // Created by 王木木 on 16/10/27. // Copyright © 2016年 王木木. All rights reserved. //import UIKit import RxSwift import RxCocoa import RxDataS
2016-11-02 14:06:56 2513
原创 RXSwift 关于tableview的创建(一)
// // WangMuMuVC.swift // RXFunction // // Created by 王木木 on 16/11/1. // Copyright © 2016年 王木木. All rights reserved. //import UIKit import RxSwift import RxCocoaclass WangMuMuVC: UIViewCont
2016-11-02 13:21:03 1474
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人