上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页

2016年10月22日

摘要: 来自sqlite3源码 /*** Compute a string length that is limited to what can be stored in** lower 30 bits of a 32-bit signed integer.**** The value returned will never be negative. Nor will it ever be great... 阅读全文
posted @ 2016-10-22 23:17 花老🐯 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 使用xcode去开发makefile的project(Building Makefile Projects With Xcode)新建工程,template选择 external Build System添加所有的源码到工程中。新建一个target,template选择 external Build System产生makefile文件执行源文件夹的configure命令,会产生makefile... 阅读全文
posted @ 2016-10-22 22:40 花老🐯 阅读(691) 评论(0) 推荐(0) 编辑
摘要: iOS进阶之编写弹性动画条纹动画(乐谱)圆圈波纹动画弹性圆圈动画数字转变动画谈谈iOS中粘性动画以及果冻效果的实现一个弹性侧滑菜单另一个数字转变动画 阅读全文
posted @ 2016-10-22 12:15 花老🐯 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 关于CAShapeLayer的一些实用案例和技巧实现遮罩音量大小动态改变的控件圆形进度条iOS 利用CAShapeLayer的FillRule属性生成一个空心遮罩的layerfillrule属性。和计算机图形学有关为视图添加丝滑的水波纹利用余弦函数 阅读全文
posted @ 2016-10-22 09:25 花老🐯 阅读(793) 评论(0) 推荐(0) 编辑

2016年10月18日

摘要: Xcode多工程联编及工程依赖iOS release,debug版设置不同的AppIconXcode创建子工程以及工程依赖Xcode 依赖管理带来的静态库动态库思考 阅读全文
posted @ 2016-10-18 23:17 花老🐯 阅读(395) 评论(0) 推荐(0) 编辑

2016年10月16日

摘要: UIColor有一个方法叫做+ (UIColor *)colorWithPatternImage:(UIImage *)image;。返回的是一个UIColor,但没有明确的RGB值,所以叫做pattern color。 [color getRed:&a green:&g blue:&b alpha:&a];可以设置为view的background color,效果就是这幅图平铺开来。 ... 阅读全文
posted @ 2016-10-16 23:39 花老🐯 阅读(1017) 评论(0) 推荐(0) 编辑

2016年10月12日

摘要: 1. 数据库文件被其他线程覆盖或删除在文件描述符关掉以后,继续使用这个文件描述符访问打开文件,获取文件描述符fd(其实是一个整形)关闭文件打开sqlite文件,获取文件描述符(碰巧也是)fd另一个线程继续使用fd,写文件sqlite文件被损坏在事务进行过程中,进行数据库备份或恢复在数据库事务过程中,数据库文件既包括老的内容,也包括新的内容。如果此时拷贝这个文件,数据库可能会被损坏。备份数据库最好使... 阅读全文
posted @ 2016-10-12 23:46 花老🐯 阅读(4615) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一个问题,用户数据丢失,拿到用户数据库文件以后,发现数据库损坏。database disk image is malformed因此希望可以找到一种方法,可以检测出来数据库是否损坏,经过google,找到了一种方法,先记录下来。+ (BOOL)checkIntegrity { NSString *databasePath = [self databaseFilePath]; // ... 阅读全文
posted @ 2016-10-12 21:59 花老🐯 阅读(3556) 评论(0) 推荐(0) 编辑

2016年10月11日

摘要: 设置slider当前位置的图像 [slider setThumbImage:[UIImage imageNamed:@"dd.png"] forState:UIControlStateNormal];设置起始的颜色 [slider setMinimumTrackTintColor:[ComHelper colorWithHex:SYSTEM_BLUE_COLOR]]设置末尾的颜色 [sl... 阅读全文
posted @ 2016-10-11 23:37 花老🐯 阅读(205) 评论(0) 推荐(0) 编辑
摘要: UIGraphicsBeginImageContextWithOptions(imagBounds.size, NO, 0); [color setFill]; UIRectFill(imagBounds); UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageC... 阅读全文
posted @ 2016-10-11 23:37 花老🐯 阅读(559) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页

导航