- 博客(11)
- 收藏
- 关注
原创 NSURLSession和NSURLConnection比较
分别用NSURLSession和NSURLConnection实现数据的请求以及NSURLSession和NSURLConnection中block参数的解释
2015-09-25 20:16:39 3322
原创 FLT_MAX 和 FLT_MIN的定义
学习iOS时,有文章用到了FLT_MAX和FLT_MIN。查阅资料后知道这是C++中的定义注意这个FLT_MIN定义的是最小的正浮点数定义是#define FLT_MIN 1.175494351e-38F FLT_MAX的定义则是#define FLT_MAX 3.402823466e+38F stack overflow上很多人
2015-09-23 10:51:09 37432
原创 initWithCoder, initWithNibName, viewDidLoad的区别
讨论initWithCoder:, initWithNibName:, 以及awakeFromNib、再加上常用的application:didFinishLaunchingWithOptions: , viewDidLoad的定义和调用顺序
2015-09-23 00:26:48 1479
转载 What is the difference between initWithCoder:, initWithNibName:, and awakeFromNib?
Answer Wiki initWithNibName:bundle: is a message sent to a view (or window) controller in order to create the controller; thus, before the nib is loaded. (Possibly long before. I
2015-09-22 07:31:42 652
原创 【leetcode】Search in Rotated Sorted Array
Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value
2015-09-16 09:17:11 351
原创 【leetcode】 two sum
Two Sum:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to
2015-09-15 09:46:08 331
原创 【leetcode】 Implement strStr()
问题:Implement strStr()Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.分析:效率最高的是KMP算法,但是不容易实现,所以先写了一个传统的字符串匹配算法。解决办法://解决办法1:传统
2015-09-14 09:46:22 418
原创 iOS 属性中strong,weak,assign,retain,copy等特性
iOS 内存管理 属性中strong,weak,assign,retain,copy特性的学习
2015-09-06 11:00:23 4008
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人