uitableview 使用 xib 的自定义cell? 新建cell:(假如命名 MyCell) 使用: 向 tableview 注册 nib 全局变量 let cellIdentifier = "myCell" myTableView!.registerNib(UINib(nibName: "MyCell", bundle:nil), f...
分类:
其他好文 时间:
2014-07-21 10:29:38
阅读次数:
748
UITableView 总结 ? UITableView是UIScrollView的子类,因此它可以自动响应滚动事件(一般为上下滚动)。 它内部包含0到多个UITableViewCell对象,每个table cell展示各自的内容。当新cell需要被显示时,就会调用...
分类:
其他好文 时间:
2014-07-21 10:25:45
阅读次数:
250
如何在phpeclipse中像调试Java程序一样调试php呢?
XDebug的版本很多,打开http://xdebug.org/index.php,把网站仔细看一下,你会发现有句“If you don't know which one you need, please refer to the custom installation instructions.”,非常好,打开这个页面,按照要求...
分类:
Web程序 时间:
2014-07-19 23:17:35
阅读次数:
270
http://gksanthoshbe.blogspot.com/2013/03/ios-interview-questions-and-answers.html1-How would you create your own custom view?By Subclassing the UIView...
分类:
移动开发 时间:
2014-07-19 22:25:30
阅读次数:
544
For android system, of course you can custom your own style and theme, but you can't break compatibility with AOSP.We should follow AOSP design, and d...
分类:
其他好文 时间:
2014-07-19 16:22:00
阅读次数:
231
iOS开发项目篇—41cell的frame设计一、简单说明1.分层设计在进行设计的时候,建议先分析整个cell的结构,确定了cell由哪些模块构成之后,再进一步确定每个模块中包含的子控件。在这个微博的cell中,把这个cell分成两个大的模块。分解结构如下:1.微博完整内容模块View(1)原创微博...
分类:
移动开发 时间:
2014-07-19 15:07:32
阅读次数:
343
UVA 11774 - Doom's Day
题目链接
题意:给定一个3^n*3^m的矩阵,要求每次按行优先取出,按列优先放回,问几次能回复原状
思路:没想到怎么推理,找规律答案是(n + m) / gcd(n, m),在topcoder上看到一个证明,如下:
We can associate at each cell a base 3-number, the log3(R...
分类:
其他好文 时间:
2014-07-19 14:06:19
阅读次数:
220
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-07-18 17:21:54
阅读次数:
293
一 Words and phrazes1 taboo禁忌n ,禁止v e.g. In the main主要,基本上,children are taboo in the workplace.2 unpolite 无礼的3 erosion 侵蚀n e.g. This leaves fertile soi...
分类:
其他好文 时间:
2014-07-18 15:35:54
阅读次数:
317
Whenever we want to add an instance of this custom view to the visible screen, we now need to:load the Nib, andextract the actual view from the array ...
分类:
其他好文 时间:
2014-07-18 10:15:11
阅读次数:
219