在做iOS项目的开发中,UITableView控件的应用十分广泛。在进行自定义UITableViewCell时,经常遇到这样的问题:在UITableViewCell上面添加了一个有背景颜色的子视图,当用户点击UITableViewCell或者选中UITableViewCell时,Cell上的子视图发 ...
分类:
移动开发 时间:
2017-04-18 18:55:52
阅读次数:
186
这是一个关于使用cocostudio实现动画自由切换的小demo auto sprite =Sprite::create("background.png"); sprite->setAnchorPoint(Point(0,0)); this->addChild(sprite); ArmatureDa ...
分类:
其他好文 时间:
2017-04-18 12:39:37
阅读次数:
255
【Tween animation】 An animation defined in XML that performs transitions such as rotating, fading, moving, and stretching on a graphic. res/anim/filena ...
分类:
其他好文 时间:
2017-04-18 11:37:07
阅读次数:
154
Android支持Java默认的那些注解,同时通过Support Annotations也额外提供了很多注解,了解并熟练使用这些注解能够让你的代码更加严谨,结构更加清晰、架构更易维护
分类:
移动开发 时间:
2017-04-17 10:23:25
阅读次数:
849
problem: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the ...
分类:
其他好文 时间:
2017-04-15 22:54:19
阅读次数:
182
// 隐藏navigationBar 没有卡顿 [self.navigationController setNavigationBarHidden:YES animated:YES]; // 隐藏navigationBar 切换页面时,有卡顿// self.navigationController. ...
分类:
其他好文 时间:
2017-04-12 16:52:26
阅读次数:
134
html,body{ height: 100%;} *{ box-sizing:border-box;} .imgBox{ transform-style: preserve-3d; position: relative; width:100px; height: 100px; margin:200 ...
分类:
Web程序 时间:
2017-04-12 13:29:50
阅读次数:
259
progressBar说明 在某些操作的进度中的可视指示器,为用户呈现操作的进度,还它有一个次要的进度条,用来显示中间进度,如在流媒体播放的缓冲区的进度。一个进度条也可不确定其进度。在不确定模式下,进度条显示循环动画。这样的模式经常使用于应用程序使用任务的长度是未知的。 XML重要属性 androi ...
分类:
移动开发 时间:
2017-04-12 03:41:46
阅读次数:
304
1、easy ui ProgressBar (1)math floor() 方法可对一个数进行下舍入。 语法 Math.floor(x) 返回值 小于等于 x,且与 x 最接近的整数。 说明 floor() 方法执行的是向下取整计算,它返回的是小于或等于函数参数,并且与之最接近的整数。 (2)ran ...
分类:
其他好文 时间:
2017-04-10 11:08:52
阅读次数:
145