int?layer?=?5;
????for?(int?k?=?layer?;?k?>0?;k--)
????{
???????
????????
????????for?(?int?i?=?0?;?i?<k?;i++)
????????{
?????????...
分类:
其他好文 时间:
2015-05-26 19:17:42
阅读次数:
104
孙广东 2015.5.26我们 游戏完全使用UGUI来工作,所以游戏中的很多元素都是UGUI的 Game Canvas画布设置为;World Space , 主要也是为了以后一下牛叉的效果还有一个UI Canvas画布设置为;Screen Space - Overlay 就是这些元素会在最前方,在屏幕上的。还有一组是:Spines Layer, 主要是放着spine制作的角色2种解决方案:第一种是...
分类:
其他好文 时间:
2015-05-26 10:49:47
阅读次数:
192
如果需要将UIView的4个角全部都为圆角,做法相当简单,只需设置其Layer的cornerRadius属性即可(项目需要使用QuartzCore框架)。而若要指定某几个角(小于4)为圆角而别的不变时,这种方法就不好用了。
对于这种情况,Stackoverflow上提供了几种解决方案。其中最简单优雅的方案,就是使用UIBezierPath。下面给出一段示例代码。
UIView *vie...
分类:
移动开发 时间:
2015-05-25 18:52:30
阅读次数:
130
iOS之给button加边框 . 圆角弧度 . 加阴影 avatarImage = [UIButton buttonWithType:UIButtonTypeCustom]; //给按钮加一个白色的板框 avatarImage.layer.borderColor = [[UIColor whiteColor] CGColor]; avatarImage.la...
分类:
移动开发 时间:
2015-05-25 14:38:55
阅读次数:
249
source 是 Layer 的重要组成部分,表示图层的来源,也就是服务地址。除了在构造函数中制定外,可以使用 layer.setSource(source) 稍后指定。一、包含的类型
ol.source.BingMaps ,必应地图的切片数据,继承自ol.source.TileImage;
ol.source.Cluster,聚簇矢量数据,继承自ol.source.Vector;
ol.sourc...
分类:
其他好文 时间:
2015-05-24 11:39:12
阅读次数:
384
layer 1.8.5官方网址:http://layer.layui.com/1.8.5/API网址:http://layer.layui.com/1.8.5/api.html
分类:
其他好文 时间:
2015-05-23 19:57:52
阅读次数:
120
tddl+diamond http://yale.iteye.com/blog/1860019 剖析淘宝TDDL(TAOBAO DISTRIBUTE DATA LAYER) http://qq85609655.iteye.com/blog/2035176...
分类:
其他好文 时间:
2015-05-22 19:45:44
阅读次数:
121
HTML: 已经是最后一个题目 CSS: .div_layer { left: 0; right: 0; position: fixed; z-index: 1001; ...
分类:
Web程序 时间:
2015-05-22 13:18:27
阅读次数:
171
[_postNewTopicBtn.imageView.layer setCornerRadius:20];[_postNewTopicBtn.imageView.layer setMasksToBounds:YES];
分类:
其他好文 时间:
2015-05-21 21:50:45
阅读次数:
85
Layer Animations与我们前面第一篇讲过的View Animation有点类似,但是Layer Animation比之多了很多效果,更加强大。
我们先来看一下今天我们要实现的效果,今天实现的效果用第一篇View Animations能实现相同效果。
本文所讲为实现此动画的相关知识。
动画由书籍《iOS Animations by tutorials》提供,我只...
分类:
移动开发 时间:
2015-05-21 19:40:55
阅读次数:
356