码迷,mamicode.com
首页 >  
搜索关键字:layer    ( 3637个结果
C#面试基础知识2
1、C#三层架构 C#三层架构急表示层(UI,User Interface),业务逻辑层(BLL BusinessLogicLayer),数据访问层(DAL Data Access Layer)。三层的划分是物理上的划分。表示层(UI),这个最容易理解,就是用户看到的主界面。数据访问层(DAL),也...
分类:Windows程序   时间:2014-11-12 22:36:37    阅读次数:367
ios 截屏,截图
#pragma mark 截图 - (UIImage *)capture:(UIView *)view {     UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0);     [view.layer renderInContext:UIGraphicsGetCurrentContext()];     U...
分类:移动开发   时间:2014-11-12 19:47:11    阅读次数:200
view添加阴影
//@mg:masksToBounds必须为NO否者阴影没有效果// cell.layer.masksToBounds = NO; cell.layer.contentsScale = [UIScreen mainScreen].scale; cell.layer.shadowOpacity...
分类:其他好文   时间:2014-11-12 16:20:50    阅读次数:160
ScrollView 重点分析
打开ScrollView,跟我一起看源码。 在Node中有个属性_ignoreAnchorPointForPosition,默认为false,不能忽略锚点做节点坐标系中的影响。 Layer和Scene继承自Node,默认contentSize是也为0的,不同的是_ignoreAnchorPointForPosition为true,挂载在其他渲染树是都是以(0,0)为参考点,无论怎么设置_ignoreAnchorPointForPosition属性都不会对其位置产生变化。以父节点的左下角为节点坐标系为起点很容...
分类:其他好文   时间:2014-11-12 11:51:21    阅读次数:272
二叉树的基本操作(二)
这是对二叉树一的补充 #include #include #define MaxSize 100 #define MaxWidth 40 int LeafCount=0; int Layer=1; typedef char ElemType; typedef struct tnode { ElemType data; struct tnode *lchild,*rchil...
分类:其他好文   时间:2014-11-11 19:17:41    阅读次数:207
关于NGUI与原生2D混用相互遮盖的问题心得
http://www.fzgh.org.cn/zuixindianying/144224.htmlNative2D自己可以使用Sort Layer来排序,每层又有不同的Order In Layer,这样每一个精灵就能自然而然调节谁来遮盖谁了。但NGUI一起混用就不行了。被折磨很久,得出以下几点结论。...
分类:其他好文   时间:2014-11-11 18:50:46    阅读次数:178
NGUI Sprite 和 Label 改变Layer 或父物体后 未更新深度问题
/// /// Auto-upgrade. /// protected override void OnInit () { Debug.Log("Chu SHiHua"); if (!mFillCenter) { ...
分类:其他好文   时间:2014-11-11 18:35:22    阅读次数:222
cocos2d-x3.0之请求网络(php服务器)
HelloWorldScene.h #ifndef __HELLOWORLD_SCENE_H__ #define __HELLOWORLD_SCENE_H__ #include "cocos2d.h" #include "network\HttpClient.h" #include "cocos-ext.h" class HelloWorld : public cocos2d::Layer ...
分类:Web程序   时间:2014-11-11 10:49:39    阅读次数:200
Cocos2d-X加载UI Editor
Layer* uiLayer = Layer::create(); myLayout = dynamic_cast(cocostudio::GUIReader::getInstance()->widgetFromJsonFile("enter/enter_1.json")); uiLay...
分类:其他好文   时间:2014-11-11 02:00:12    阅读次数:198
CALayer笔记
1、Core Animation是跨平台的,支持IOS和Mac OS X环境2、核心动画操作的对象不是UIView而是CALayer,CALayer是核心动画的基础,可以做圆角、阴影、边框等效果3、每个UIView内部都有一个Layer的属性4、在实现核心动画时,本质上是将CALayer中得内容转换...
分类:其他好文   时间:2014-11-10 21:32:11    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!