Delegate Delegate 使用 在被代理的对象中,声明代理和代理方法。在类中弱引用代理对象弱引用原因:因为 View 作为 delegate 对 ViewController 是强引用,同时 ViewController 对 View 也是强引用,这就出现了循环引用。ViewController 引用着 View,并且 View 引用着 ViewController,两者的引用计数都不会变成 0,所以它们 2018-08-30 基础 代理
LeetCode --- 字符串 字符串倒叙输出原题是在Codewars上要求是reverse(“hello world”)==“world hello ” reverse(“hi there”)==“there hi”123456789#import <Foundation / Foundation.h>NSString * reverse(NSString * text){ //字符串变成数据, 2018-08-28 算法 字符串
LeetCode --- 数组类算法 LeetCode — 数组算法从排序数组中删除重复项 不使用额外的数组空间,空间复杂度为O(1)排序数组,不考虑非连续重复原地修改输入,修改输入数组,返回数组长度 1234567891011121314151617181920212223class Solution { func removeDuplicates(_ nums: inout [Int]) -> Int & 2018-08-28 算法 数组
书签整理 Swift学习指引编程全面信息AppCode代码练习raywenderlichUsingSwiftwithCocoaandObjective-C中文手册The Swift Programming Language开发中文手册SwiftGG 翻译组官方交互UI教程 2018-08-27 资源集合
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. 2018-08-23 博客