随笔分类 -  iOS

摘要:NSString *path = [[NSBundle mainBundle] bundlePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; NSString * htmlPath = [[NSBundle mainBundle... 阅读全文
posted @ 2015-05-14 18:03 曹县三胖暴打大猩猩 阅读(320) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-05-10 22:16 曹县三胖暴打大猩猩 阅读(325) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-05-10 21:31 曹县三胖暴打大猩猩 阅读(180) 评论(0) 推荐(0)
摘要:#import @interface MJSegmentViewController : UIViewController/** * @brief 设置切换不同viewcontroller * * @param arrViewCtl 保存viewController对象 * @param ... 阅读全文
posted @ 2015-04-19 18:08 曹县三胖暴打大猩猩 阅读(503) 评论(0) 推荐(0)
摘要:1:执行指令 chmod a+x "路径(Pods-resources.h文件所在的路径)"2:cd 进如pods文件夹下面3:执行指令第一步: sudo chmod 777 Pods第二步:pod install 阅读全文
posted @ 2015-04-10 14:04 曹县三胖暴打大猩猩 阅读(270) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; [self crea... 阅读全文
posted @ 2015-04-05 21:49 曹县三胖暴打大猩猩 阅读(1493) 评论(0) 推荐(0)
摘要:#import @interface CircleProgressView : UIView/**进度值*/@property(nonatomic,assign) CGFloat progressValue;@end#import "CircleProgressView.h"@implementa... 阅读全文
posted @ 2015-04-02 10:13 曹县三胖暴打大猩猩 阅读(162) 评论(0) 推荐(0)
摘要:#import typedef NS_ENUM(NSInteger, EcolorDirectionType){ EcolorDirectionUp, //上 EcolorDirectionDown, //下 EcolorDirectionRight, //右 Eco... 阅读全文
posted @ 2015-04-01 18:45 曹县三胖暴打大猩猩 阅读(293) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController (){ CAGradientLayer *_gradientLayer;}@end@implementation ViewController- (void)viewDidLoad{ ... 阅读全文
posted @ 2015-04-01 17:45 曹县三胖暴打大猩猩 阅读(173) 评论(0) 推荐(0)
摘要:#import @interface CircleProgressView : UIView/**起始值(0-1)*/@property(nonatomic,assign)CGFloat fstartValue;/**边框宽度*/@property(nonatomic,assign)CGFloat ... 阅读全文
posted @ 2015-04-01 15:26 曹县三胖暴打大猩猩 阅读(1148) 评论(0) 推荐(0)
摘要:/**创建椭圆形的贝塞尔曲线*/ UIBezierPath *_ovalPath=[UIBezierPath bezierPathWithOvalInRect:CGRectMake(0, 0, 200, 100)]; /**创建矩形的贝塞尔曲线*/ UIBezierPath... 阅读全文
posted @ 2015-04-01 14:22 曹县三胖暴打大猩猩 阅读(7188) 评论(0) 推荐(0)
摘要:#import "MyView.h"@interface MyView (){ CGMutablePathRef pathRef;}@end@implementation MyView-(id)initWithCoder:(NSCoder *)aDecoder{ if (self=[su... 阅读全文
posted @ 2015-03-31 23:00 曹县三胖暴打大猩猩 阅读(158) 评论(0) 推荐(0)
摘要:/**绘制圆形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0); CGContextStrokePat... 阅读全文
posted @ 2015-03-31 22:29 曹县三胖暴打大猩猩 阅读(153) 评论(0) 推荐(0)
摘要:/**绘制三角形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextMoveToPoint(contextRef, 100, 100); CGContextAddLineToPoint(contex... 阅读全文
posted @ 2015-03-31 22:06 曹县三胖暴打大猩猩 阅读(184) 评论(0) 推荐(0)
摘要:1:首先选中项目WaterDropTest.xcodeproj文件后单击鼠标->输入我们要重新命名的工程名,然后会弹出一个对话框,点击rename按钮2、xcode菜单中选-》product-》scheme->managescheme,3、对工程下面的文件夹重命名4、然后再xcode中在来对该文件夹... 阅读全文
posted @ 2015-03-31 18:13 曹县三胖暴打大猩猩 阅读(370) 评论(0) 推荐(0)
摘要:-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView transitionWithView:_imageViewFirst duration:1.0f options:UIViewAnimationOp... 阅读全文
posted @ 2015-03-31 10:58 曹县三胖暴打大猩猩 阅读(959) 评论(0) 推荐(0)
摘要:[UIView beginAnimations:nil context:nil]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:_imageViewFirst cache:YES]; ... 阅读全文
posted @ 2015-03-31 10:41 曹县三胖暴打大猩猩 阅读(338) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIImageView *imageViewFirst;@property (strong, nonatomic)... 阅读全文
posted @ 2015-03-31 10:33 曹县三胖暴打大猩猩 阅读(1108) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@property(nonatomic,strong)CALayer *maskLayer;@pr... 阅读全文
posted @ 2015-03-31 10:14 曹县三胖暴打大猩猩 阅读(242) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@end@implementation ViewController- (void)viewDid... 阅读全文
posted @ 2015-03-30 22:58 曹县三胖暴打大猩猩 阅读(1277) 评论(0) 推荐(0)