摘要: #import "GLProgram.h"// Base classes#import "GPUImageOpenGLESContext.h"#import "GPUImageOutput.h"#import "GPUImageView.h"#import "GPUImageVideoCamera.... 阅读全文
posted @ 2015-08-18 16:37 Nonato 阅读(395) 评论(0) 推荐(0) 编辑
摘要: Private PodsCocoaPods is a great tool not only for adding open source code to your project, but also for sharing components across projects. You can u... 阅读全文
posted @ 2015-08-08 23:04 Nonato 阅读(699) 评论(0) 推荐(0) 编辑
摘要: -(void)addRoundBorder:(UIView *)view{ CAShapeLayer * acircle = [CAShapeLayer layer]; acircle.path = [UIBezierPath bezierPathWithRoundedRect:view... 阅读全文
posted @ 2015-07-22 19:53 Nonato 阅读(180) 评论(0) 推荐(0) 编辑
摘要: }/** * 得到mask的图像 * * @param BubbleImage 气泡原始图 * @param edge 拉伸角度 * @param maskframe 蒙版大小 * * @return 返回蒙版图像 */-(UIImage *)getMaskImageWi... 阅读全文
posted @ 2015-07-22 19:08 Nonato 阅读(425) 评论(0) 推荐(0) 编辑
摘要: - (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); // Border CGContextSetRGBFillColor(context, 1.0, 1.0... 阅读全文
posted @ 2015-07-01 09:57 Nonato 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 有一组向量,我们用数组表示,怎样能够求出这个数组中连续的一组数,并且要求最大?分治算法的基本思想是:将一个比较大的问题分解成几个小问题,例如,上面的那段代码的时间复杂度是N^3级。如果把数组分成两段,照着上面的代码再写后,时间复杂度会降低很多的。。。 而且,分治算法就是根据这种思想总结出来的:先分... 阅读全文
posted @ 2015-06-08 13:58 Nonato 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-06-07 22:59 Nonato 阅读(270) 评论(0) 推荐(0) 编辑
摘要: // Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(C... 阅读全文
posted @ 2015-06-05 14:42 Nonato 阅读(387) 评论(0) 推荐(0) 编辑
摘要: UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型 button.frame = CGRectMake(100, 100,90, 90);//button的frame button.ba... 阅读全文
posted @ 2015-05-11 15:38 Nonato 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1.AFNetworking地址:https://github.com/AFNetworking/AFNetworking用于网络请求2.JSONKit地址:https://github.com/johnezang/JSONKit解析JSON3.Reachability地址:https://gith... 阅读全文
posted @ 2015-05-02 13:37 Nonato 阅读(295) 评论(0) 推荐(0) 编辑