摘要:
#import "GLProgram.h"// Base classes#import "GPUImageOpenGLESContext.h"#import "GPUImageOutput.h"#import "GPUImageView.h"#import "GPUImageVideoCamera.... 阅读全文
摘要:
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... 阅读全文
摘要:
-(void)addRoundBorder:(UIView *)view{ CAShapeLayer * acircle = [CAShapeLayer layer]; acircle.path = [UIBezierPath bezierPathWithRoundedRect:view... 阅读全文
摘要:
}/** * 得到mask的图像 * * @param BubbleImage 气泡原始图 * @param edge 拉伸角度 * @param maskframe 蒙版大小 * * @return 返回蒙版图像 */-(UIImage *)getMaskImageWi... 阅读全文
摘要:
- (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); // Border CGContextSetRGBFillColor(context, 1.0, 1.0... 阅读全文
摘要:
有一组向量,我们用数组表示,怎样能够求出这个数组中连续的一组数,并且要求最大?分治算法的基本思想是:将一个比较大的问题分解成几个小问题,例如,上面的那段代码的时间复杂度是N^3级。如果把数组分成两段,照着上面的代码再写后,时间复杂度会降低很多的。。。 而且,分治算法就是根据这种思想总结出来的:先分... 阅读全文
摘要:
// Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(C... 阅读全文
摘要:
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型 button.frame = CGRectMake(100, 100,90, 90);//button的frame button.ba... 阅读全文
摘要:
1.AFNetworking地址:https://github.com/AFNetworking/AFNetworking用于网络请求2.JSONKit地址:https://github.com/johnezang/JSONKit解析JSON3.Reachability地址:https://gith... 阅读全文