摘要:
http://msdn.itellyou.cn 阅读全文
摘要:
// 将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值 - (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view; // 将像素point从view中转换到当前视图中,返回在当前视图中的 阅读全文
摘要:
也可以自定义背景 阅读全文
摘要:
通过终端 1.sudo vim /etc/hosts 2.按i 3.然后把http://laod.cn/wp-content/uploads/2015/06/20150724-hosts.tx复制在里边 等粘贴完了,按ESC,然后输入:wq 回车 就可以了 最新的host从这个地址拷贝最新的也可 阅读全文
摘要:
这个问题是因为provisioning的问题,因为真机没有加入到账号下面的原因解决步骤1.吧identifier复制然后再平开开发中心2.点击+号添加设备保存3.在develope中选中保存即可 阅读全文
摘要:
链接文件路径ln -fs ../../../../文件夹 (../代表路径层级)svn 软连接文件路径1.cd到需要软连接的文件架下2.通过ln -fs ../../../../文件夹 (文件名字) 创建软连接(必须要用到相对路径)3.xcode里边导入静态库二:拷贝文件svn copy svn:... 阅读全文
摘要:
http://jingyan.baidu.com/article/ab0b5630936ab6c15afa7d1c.htmlhttps://help.github.com/articles/generating-ssh-keys/今天为了把项目挂到Github上并且和组员协作好,研究了下Github... 阅读全文
摘要:
/*** 函数的定义和调用*/func showIntegerArray(array:[Int]){ for a in array { println("\(a)") }}showIntegerArray([1,2,3])func maxOfValue(a:Int,... 阅读全文
摘要:
//swift的广义匹配let x = 1000switch x { case 1...9: println("个位数") case 1...9: println("十位数") default: println("其他")}let point = (10,10)s... 阅读全文