一、面向对象编程介绍 1 编程范式: 编程范式(Programming Paradigm)是某种编程语言典型的编程风格或者说是编程方式。随着编程方法学和软件工程研究的深入,特别是OO思想的普及,范式(Paradigm)以及编程范式等术语渐渐出现在人们面前。面向对象编程(OOP)常常被誉为是一种革命性 ...
分类:
编程语言 时间:
2016-08-28 22:28:25
阅读次数:
291
1. 2. 3.UITableView Protocols:How do we connect to all this stuff in our code?Via the UITableView’s datasource and delegate. The delegate is used to c ...
分类:
移动开发 时间:
2016-06-26 14:10:00
阅读次数:
256
1.Now,this line of code could cause trouble.If self.image is nil,because I told you that if you have a method,this is just a getter of the image that ...
分类:
移动开发 时间:
2016-06-25 13:37:45
阅读次数:
221
1.One is CGFloat.It’s a floating point number.All floating point numbers that have to do with drawing on the screen or getting touch events or whateve ...
分类:
移动开发 时间:
2016-05-29 23:15:37
阅读次数:
246
1.Abstract means that this class cannot be instantiated and used,it’s only useful as a superclass for other classes that are concrete. (04:00) 2.And I ...
分类:
移动开发 时间:
2016-05-23 21:15:10
阅读次数:
241
1.There is a class called NSNotificationCenter .It has a class method called defaultCenter.That returns a shared instance kind of like NSUserDefault,s ...
分类:
移动开发 时间:
2016-05-22 20:00:08
阅读次数:
241
1.All objects in an array are held onto strongly in the heap.So as long as that array itself is in the heap,as long as someone has a strong pointer to ...
分类:
移动开发 时间:
2016-05-20 22:19:19
阅读次数:
269
1.The difference is card.h is the public API.That’s what your dot h is.It’s your public API.It’s what methods in your class you want to make public so ...
分类:
移动开发 时间:
2016-05-14 18:43:44
阅读次数:
239
至于为何要在这里讲解android系统源码中的系统更新,我已经在上一篇《 CM android的CMUpdater分析(一)》中介绍了。在上一篇中,主要讲解了在eclipse中如何搭建系统应用的开发环境,现在我们就使用eclipse来分析CMUpdater源码。该系统更新是CM修改原生android的基础上实现的。通过分析android系统的应用源码,可以学到一些很好的思想和编程方法学。好了,废话少...
分类:
移动开发 时间:
2016-04-15 12:04:22
阅读次数:
324
线性回归即线性拟合,给定N个样本数据(x1,y1),(x2,y2)....(xN,yN)(x_1,y_1),(x_2,y_2)....(x_N,y_N)其中xix_i为输入向量,yiy_i表示目标值,即想要预测的值。采用曲线拟合方式,找到最佳的函数曲线来逼近原始数据。通过使得代价函数最小来决定函数参数值。
采用斯坦福大学公开课的例子:假如一套房子的价格只考虑由房屋面积(Living area)与...
分类:
其他好文 时间:
2016-03-14 00:20:17
阅读次数:
651