自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(81)
  • 资源 (8)
  • 收藏
  • 关注

原创 多线程的简单使用

//// ViewController.m// 多线程处理//// Created by apple on 16/6/2.// Copyright © 2016年 李重阳. All rights reserved.//#import "ViewController.h"static NSInteger const AddTag = 100;@interface ViewContr

2016-06-02 18:19:26 522

转载 橡皮擦

- (void)viewDidLoad { [super viewDidLoad]; //初始化要显示在下面的提示label UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 200, 50)]; label.textAlignment = NSTextAlignmentCente

2016-06-02 15:35:27 465

转载 CGPath CGContext UIBezierPath的比较

//// PathView.m// Qauze//// Created by apple on 16/6/2.// Copyright © 2016年 李重阳. All rights reserved.//#import "PathView.h"@implementation PathView- (instancetype)initWithFrame:(CGRect)frame

2016-06-02 15:32:43 905

转载 断点续传

//// ViewController.m// 断点续传//// Created by apple on 16/5/31.// Copyright © 2016年 李重阳. All rights reserved.//#import "ViewController.h"@interface ViewController ()<NSURLSessionDelegate>@prope

2016-05-31 13:14:48 385

原创 交换方法

#import "UIImage+AddImageFunc.h"#import <objc/runtime.h>@implementation UIImage (AddImageFunc)+ (void)load { Method methodOfOrigin = class_getClassMethod(self, @selector(imageNamed:)); Method m

2016-05-30 18:25:24 734

原创 用runtime归档、解档、copy

1.我定义一个TestModel //// TestModel.h// runTime//// Created by apple on 16/5/27.// Copyright © 2016年 李重阳. All rights reserved.//#import <Foundation/Foundation.h>#import <objc/runtime.h>@interfac

2016-05-27 17:46:48 515

原创 下载老版本的xcode

7.2.1: https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7.2.1/Xcode_7.2.1.dmg7.2 : https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_

2016-04-23 12:40:30 439

转载 资料整理

1.MJEXtension的使用方法 http://www.jianshu.com/p/93c242452b9b) 2.MJExtension的下载:https://github.com/CoderMJLee/MJExtension

2016-04-20 11:42:51 252

原创 非arc 转 arc

遇到 最大的bug ,就是出现 下面的错: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can’t figure out the architecture type of: /Users/apple/Library/Develope

2016-04-16 18:28:32 289

原创 环信及时通讯的整合SDK

导入 EaseMobSDK (只包含 libEaseMobClientSDK.a 可以聊天 语音的)导入的库依赖 3.Other link 设置 4.head search 设置

2016-04-15 12:49:29 386

原创 iOS 一些关键描述字

1. NS_DEPRECATED_IOS(2_0, 6_0) : 2_0表示引入的iOS版本号,6_0表示被废弃时的iOS版本。2. NS_AVAILABLE_IOS(5_0) :这个方法可以在iOS5.0及以后的版本中使用

2016-04-11 17:55:36 328

原创 xcode收缩代码

xcode 收缩代码设置

2016-04-05 20:49:13 1408

原创 截图片和保存图片

- (void)wxNavViewDidSelectedRightBarItemWithTag:(NSInteger)tag { //截取当前的一张图片的方法 UIGraphicsBeginImageContext(self.imageView.bounds.size); UIGraphicsBeginImageContextWithOptions(self.imageView

2016-04-01 20:39:11 896

原创 防止OC 里面的 释放不了的问题

当我们的自定义的view,如果假设要引用superView的时候,只能弱引用,否则会出现释放不了的问题。

2016-03-31 19:31:14 333

原创 递归8_全排列

static int count = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from

2016-03-31 18:02:02 382

原创 递归7_旗子的移动问题

static int count = 1;@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from

2016-03-31 17:23:41 886

原创 递归6_简单的0/1背包问题 去除相同的数

static int maxM = 5;static int count = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the v

2016-03-31 16:25:47 472

原创 递归5_简单的0/1背包问题

static int maxM = 5;static int count = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the v

2016-03-31 15:58:09 670

原创 递归4_数组逆序

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. int a[10] = {0,1,2,3,4,5,6,7,8,9}; inversion(10,a);}void inversion(in

2016-03-31 14:38:49 622

原创 递归3_计算多个数字

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. printf("sum = %d",numOfSum(4, 5));}/** * 题目:求s=a+aa+aaa+aaaa+aa...a的

2016-03-31 14:03:20 308

原创 递归二 - 汉诺塔

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. hanNuoTa('A','C','B',3);}void hanNuoTa(char a,char c ,char b,int n) {

2016-03-31 11:49:54 225

原创 递归二 最大公约数

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. printf("最大公约数%d",greatestCommonFactor(98,63));}int greatestCommonFactor(

2016-03-31 11:22:30 230

原创 递归一

//// ViewController.m// 算法测试//// Created by apple on 16/3/30.// Copyright © 2016年 李重阳. All rights reserved.//#import "ViewController.h"int firstCount = 0;int inputNum[3] = {0};@interface Vi

2016-03-31 10:02:27 239

原创 导航条的属性

self.navigationBarHidden = YES; //导航条的隐藏self.interactivePopGestureRecognizer.delegate = nil;//系统的右滑

2016-03-16 21:22:12 373

原创 相册 相机 权限

#pragma mark - actionSheet Delegate- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex == 0) {//摄像 //相机权限判断 AVAuthorization

2016-03-12 10:16:42 2379

转载 跳转去开启权限

// 跳到相册中 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Privacy&path=Photos"]];//prefs 其实是 info 中的 URLScheme

2016-03-11 20:29:41 621

原创 手势的代理方法(解决了 手势和点击cell 的冲突)

#pragma mark - 手势的代理方法(解决了 手势和点击cell 的冲突)- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { // 输出点击的view的类名 //NSLog(@"%@", NSStringFromCla

2016-03-10 15:38:05 1325

原创 xcode 更新问题

当我们在其他人员的电脑开发的时候,当更新xcode 是不知道这个人的appleID 那么我们可以强制更新 1.找到Xcode,右键“显示包内容” 2.找到_MASReceipt文件夹 3.删除它,然后退出重启AppStroe,更新Xcode即可。

2016-01-29 17:49:30 678

原创 UIMenuController 在UIView 上的 显示

1.在某个view 的.m文件中加上- (BOOL)canBecomeFirstResponder{ return YES;}例如写个长按的方法 的代理出来 // 长按钮- (void)m80AttributedLabel:(M80AttributedLabel *)label longPressWtihText:(NSString *)text longPressPoint:(C

2016-01-28 13:38:55 797

原创 IOS pch 文件的设置

设置 pch文件 1.新建pch 文件 2.设置

2016-01-25 19:11:11 274

原创 IOS7 js 调用IOS

一:自从IOS7 以后JavaScriptCore iOS 和 js的交互就变的简单 这里我主要来说下 JS 调用 IOS 定义一个协议 WXExportProtocol 这个协议是 属于JSExport 协议的。里面有个方法hideMenuBotton,这个方法名是服务器定义好的,如果服务器传一个参数 就定义成- (void)hideMenuBotton:(NSNumber )isHidd

2016-01-21 16:55:05 623

原创 IOS 9 以上 网络请求失败

iOS 9 以上 网络请求失败的 解决办法

2016-01-21 10:40:18 943

原创 CoreData 简单介绍

一:一个大概的CoreData 的流程 二:初始化CoreData 资源文件 三:封装CoreDataManage /* 1、NSManagedObjectContext :管理对象,上下文,持久性存储模型对象 2、NSManagedObjectModel :被管理的数据模型,数据结构 3、NSPersistentStoreCoordinator :连接数据库的 4、NSManagedO

2016-01-14 19:47:59 283

原创 GCD的常用方法

//GCD 可以 用arc 里面的自动释放内存 //这个是全局并发队列 dispatch_queue_t global_queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(global_queue, ^{ // 异步去处理一个事情

2016-01-13 18:21:53 542

原创 GCD自定义的队列 和 全局队列的区别

// 创建一个GCD 的队列(这个是串行队列) dispatch_queue_t queue = dispatch_queue_create("com.lcy.queue", NULL); /** 自己创建的 虽然 也会走 异步操作 但是 可以看出 不管怎么走 都会 是 下一个操作总是依赖上一个操作 2016-01-13 18:13:25.814 多线程[9617:

2016-01-13 18:20:54 2335

原创 NSOperationQueue 依赖操作

NSOperationQueue * operationQueue = [[NSOperationQueue alloc]init]; NSInvocationOperation * invocationOp = [[NSInvocationOperation alloc]initWithTarget:self selector:@selector(invocationRun) object:

2016-01-13 17:36:24 343

原创 自定义 NSOperation

// 自定义NSOperation 的时候 我们需要 重载- (void)main 方法- (void)main { @autoreleasepool { //这里就只能用一个同步线程的方法去处理一个费时间的操作(比如要加载一个图片),因为如果是异步的话 就会导致访问不到当前的释放池 //在执行完成后需要 用下面这个方法通过代理回调 //performSe

2016-01-13 17:17:07 282

原创 NSOperation

// 同步执行的代码NSInvocationOperation * invocationOp = [[NSInvocationOperation alloc]initWithTarget:self selector:@selector(invocationRun) object:nil]; [invocationOp start]; NSBlockOperation * blockOp = [NS

2016-01-13 17:09:02 201

原创 NSThread的一些方法

NSLog(@"1"); [self performSelectorOnMainThread:@selector(threadRun:) withObject:@"lichongyang" waitUntilDone:NO]; NSLog(@"3");// 这里如果waitUntilDone:NO 的时候 打印的结果是 1、3、2// 如果 waitUntilDone:YES 的时

2016-01-13 16:42:11 175

原创 CAKeyFrameAnimation 的简单用法

CAKeyFrameAnimation: 我们可以用 CGPath 来执行动画的轨迹- (void)positionLayer { //创建路径 UIGraphicsBeginImageContext(self.view.bounds.size); CGContextRef contextRef = UIGraphicsGetCurrentContext(); CGM

2016-01-12 16:55:17 504

Apple_Debugging_and_Reverse_Engineering_v3.0.epub

最新版 支持 IOS12 XCode10 Apple_Debugging_and_Reverse_Engineering_v3

2019-10-10

Vue.js权威指南_张耀春;黄轶;王静;苏伟;王瑾;殷献勇(著) _电子工业出版社.pdf.zip

Vue.js权威指南_张耀春;黄轶;王静;苏伟;王瑾;殷献勇(著) _电子工业出版社.pdf.zip带目录

2019-05-17

PHP7实践指南_O2O网站与App后台开发

PHP7实践指南_O2O网站与App后台开发 , 是epub格式。

2019-03-26

IOS 设计模式 + 代码

IOS 设计模式 + 代码

2019-01-30

Hooper 最新版V4.0(非常GOOD)

Hooper 最新版V4.0,非常好用,欢迎订阅。

2018-12-21

IOS programming

最新版的 ios12 programming;这个是我 最近找的;希望对大家有用

2018-11-07

objc 中国 app 架构

objc 中国 最新版本的 app架构 ,https://objccn.io/products/

2018-11-05

objc中国-swift函数式编程

objc中国-swift函数式编程,可以学习https://objccn.io/products/

2018-11-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除