摘要: video类型的PHAsset导入到沙盒目录 阅读全文
posted @ 2019-05-14 10:44 binbins 阅读(2337) 评论(0) 推荐(0) 编辑
摘要: boolforkey OMG OMG,我之前的用法是错的,boolforkey的用法是直接拿到userdefaults 对应key的布尔值,如果没有这个key就返回false, 千万不要把它误以为是[ [字典 allkeys ]containsObject@"yourkey"]来用; 阅读全文
posted @ 2017-01-13 21:43 binbins 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 场景:在开发中,在storyboard中创建一个UIViewController,又在上面拖进去了UICollectionView控件,这时想要使用自定义的cell和sectionHeader 并且不想单独创建子类的.xib文件 在storyboard外创建单元格和section头视图的子类(.h和 阅读全文
posted @ 2017-01-11 17:20 binbins 阅读(467) 评论(0) 推荐(0) 编辑
摘要: open -n /Applications/Unity/Unity.app 阅读全文
posted @ 2016-12-05 11:14 binbins 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1.字典-->字符串 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:&parseError]; NSString *string = [[ 阅读全文
posted @ 2016-12-01 09:02 binbins 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 在ios原生程序里面 全屏截屏 UIWindow *window = [[UIApplication sharedApplication] keyWindow]; //下边是经典的4步 UIGraphicsBeginImageContext(window.frame.size); //打开画布,并设 阅读全文
posted @ 2016-11-24 12:39 binbins 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 静态的 物理2D对象的动画和移动是通过 transform来实现的 (如果有实现动画,需要加上rigidBody2d,用来减少开销) https://unity3d.com/cn/learn/tutorials/projects/2d-ufo-tutorial/setting-play-field? 阅读全文
posted @ 2016-11-17 19:12 binbins 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.先登录苹果开发者网站 https://developer.apple.com/ Account -> certificate -> Devices 2.通过上边的路径来 注册设备(点加号,通过udid来添加设备<https://www.pgyer.com/udid>) 3.进入Provision 阅读全文
posted @ 2016-11-12 23:03 binbins 阅读(1723) 评论(0) 推荐(0) 编辑
摘要: 稍后写 阅读全文
posted @ 2016-11-10 10:02 binbins 阅读(342) 评论(0) 推荐(0) 编辑
摘要: mac os 下默认安装了 python2.7,所以我们直接安装tornado就可以了 阅读全文
posted @ 2016-11-06 13:08 binbins 阅读(251) 评论(0) 推荐(0) 编辑