摘要:
Unity has some quirks about their inspector, so as a preface they are listed here: If you add a [Serializable] attribute to a class, Unity's Inspector 阅读全文
摘要:
在Swift项目中想要同一时候加入Objective-C的库支持或者须要同一时候用Objective-C编程 在加入新的文件时选择Objective-C系统就会自己主动生成一个xx-Bridging-Header.h的一个文件,然后把要在Swift项目中引用的Objective-C文件的.h文件 # 阅读全文
摘要:
UITableViewHeaderFooterView的使用+自己主动布局 使用UITableView的header或footer复用时,假设採用自己主动布局,你会发现有约束冲突,以下这样写能够消除约束冲突: #import <UIKit/UIKit.h> @interface SectionVie 阅读全文
摘要:
一个类能够继承(inherit)还有一个类的方法(methods),属性(property)和其他特性 一、基本的语法 class Human{ var name :String init(){ name = "human" println(name) } func description(){ p 阅读全文
摘要:
Cocos2d-x截图实现 图片将会保存在data/data/包名/files文件夹下。 Android下分享一张图片 linux系统下的文件权限 普通情况下android下的每个应用程序都是一个独立的用户。相应一个独立的组。一个文件的权限由3组3个二进制位表示。 位置0 - 代表文件 d 代表文件 阅读全文