码迷,mamicode.com
首页 >  
搜索关键字:custom cell    ( 7916个结果
UITableView去除空白cell上多余separator
具体的效果可以参考微信ios7版的UITableview 它最后一行cell的separator是顶到最左边的首先设置tableFooterView[objc]view plaincopy_messageTableview.tableFooterView=[[UIViewalloc]initWith...
分类:其他好文   时间:2014-10-09 00:03:07    阅读次数:203
自定义Android标题栏TitleBar布局
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main); //软件activity的布局 getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar); //titlebar为自己标题...
分类:移动开发   时间:2014-10-08 23:53:07    阅读次数:183
Word Search
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-10-08 00:05:04    阅读次数:221
ios 获取按钮所在的cell对象, 注意:ios8 ios7 获取cell对象的区别
ios 获取按钮所在的cell对象, 注意:ios8 ios7 获取cell对象的区别...
分类:移动开发   时间:2014-10-07 18:42:23    阅读次数:192
Animate a custom Dialog,自定义Dialog动画
Inside res/style.xmlInside anim/fadein.xmlInside anim/fadeut.xmlMainActivityDialog imageDiaglog= new Dialog(MainActivity.this,R.style.PauseDialog);htt...
分类:其他好文   时间:2014-10-06 02:54:39    阅读次数:164
[IOS]Type 'NSObject' does not conform to protocol 'NilLiteralConvertible'
在使用一个cell的时候发生的, func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableV...
分类:移动开发   时间:2014-10-04 19:12:06    阅读次数:223
css 垂直水平居中总结
前言:垂直居中有很多方式,我们要做的不是写出完美代码,而是在合适的情况下根据需求选择合适方式。主要方式:line-height绝对定位表格 display:table-cell主要需求:固定宽高不固定宽高主要兼容:ie8+ 主流浏览器ie6,7行高1. 利用行高与高度相同,实现单行文本居中缺点:只能...
分类:Web程序   时间:2014-10-04 13:59:36    阅读次数:287
UVA 11464 Even Parity(枚举递推)
11464 - Even Parity Time limit: 3.000 seconds We have a grid of size N x N. Each cell of the grid initially contains a zero(0) or a one(1).  The parity of a cell is the number of 1s surrounding...
分类:其他好文   时间:2014-10-04 13:04:46    阅读次数:155
MJ - 0918 - 网络编程1
实例:应用列表(网络获取图片)1. 创建tableViewController2. 导入app的plist3. 导入app的Model(保存模版文件)4. 在控制器写apps的懒加载(添加代码快)5. 设置列表的行数6. 创建cell(添加代码快)7. 给cell中的detailTitle和titl...
分类:其他好文   时间:2014-10-02 16:13:03    阅读次数:207
自定义Cell的步骤(封装思想)
一 、用XIB封装View的步骤1.新建一个xib文件描述一个view的内部结构(假设叫做SDTgCell.xib)●2.新建一个自定义的类(自定义类需要继承自系统自带的view, 继承自哪个类, 取决于xib根对象的Class)●3.新建类的类名最好跟xib的文件名保持一致(比如类名就叫做SDTg...
分类:其他好文   时间:2014-10-02 03:25:02    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!