自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 检测服务器是否支持IPV6

检测服务器是否支持IPV6 终端输入以下代码: dig +nocmd + nostats 你的域名  Got answer 显示返回 NOERROR 为止。  

2018-12-18 14:40:53 2132

原创 iOS 顺时针不停旋转

CABasicAnimation *animation =  [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];     //顺时针效果,将fromValue和toValue的值互换,则为逆时针效果     animation.fromValue = [NSNumber numberWithFloat:0.f];

2017-10-25 17:39:26 1366

转载 详解iOS的深浅拷贝

详解iOS的深浅拷贝:点击打开链接

2017-08-07 10:55:33 379

原创 ios library not found for -xxx(.a编译出错),xxx.h file not found(framework编译出错)

library not found for -xxx Library Search Paths 下配置 1.如果我们指定的目录和静态库xxx.a的目录不相关,需要重新到Library Search Paths下设置(注意:设置的是静态库的磁盘路径) 2.如果我们指定的目录和静态库的目录有关系。即,我们指定的目录是静态库所在目录的上级目录,或者是上上级目录。这种情况下,无需指定静态库的精确

2017-06-15 17:07:42 2777 2

原创 更新Cocoapods时 - Use the `$(inherited)` flag, or - Remove the build settings from the target.

需要在header search path  ,other link flags,分别添加$(inherited)

2017-04-07 14:53:36 665

原创 ios 设置两个方向圆角

UIImageView *view = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];     [view setImage:[UIImage imageNamed:@"111.png"]];     [self.view addSubview:view];          UIBezierPath *

2017-02-15 20:33:23 1702

原创 tableview 创建

一、使用NIB 1、xib中指定cell的Class为自定义cell的类 2、调用registerNib:forCellReuseIdentifier:向数据源注册cell [_tableView registerNib:[UINib nibWithNibName:@"xxx" bundle:nil] forCellReuseIdentifier:CellIdentify];

2016-12-15 10:47:59 468

原创 解决Xcode Umbrella Header for Module Bolts does not include header ‘文件名’

进入引入的Framework,需要在module.modulemap中,增加一个header文件,会看到如下格式: framework module framework名 {   umbrellaheader "framework名.h"   export *   module * {export * }      explicitmodule 要加入的文件名 {

2016-12-14 11:09:13 3676

原创 iOS Cocoapods安装、使用

1.更新ruby源: gem sources -l #(查看当前ruby的源) gem sources --remove https://rubygems.org/ #(移除当前ruby的源) gem sources -a https://ruby.taobao.org/ #(设置当前ruby的源为我天朝的) gem sources -l #(再次查看当前ruby的源) 如果Termin

2016-12-06 14:38:56 505

转载 ReactiveCocoa 学习笔记 - 使用篇

点击打开链接

2016-11-30 22:11:24 445

翻译 iOS 设置状态栏

info.plist文件中,View controller-based status bar appearance项设为YES,则View controller对status bar的设置优先级高于application的设置。为NO则以application的设置为准,view controller的prefersStatusBarHidden方法无效,是根本不会被调用的。 一、如果V

2016-11-01 13:37:00 422

转载 iOS中的runtime

1.什么是runtime? runtime是一套底层的C语言API,包含很多强大实用的C语言数据类型和C语言函数,平时我们编写的OC代码,底层都是基于runtime实现的。 2.runtime有什么作用? 1.能动态产生一个类,一个成员变量,一个方法 2.能动态修改一个类,一个成员变量,一个方法 3.能动态删除一个类,一个成员变量,一个方法 3.常用的头文件 #import 包含

2016-07-18 15:24:57 370

转载 iOS 获取app版本号、序列号、名称、、、

NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; CFShow(infoDictionary); // app名称 NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"]; // app版本 NSString

2016-06-17 09:43:25 1802

翻译 self 和 _

使用@property声明属性时,系统已经自动帮我们生成set,get方法。 同时我们发现在我们访问我们声明的变量时,会有self. 和 以"_"开头的访问方式,那么这两种方式到底有什么样的区别呢? 看一下: @property (retain, nonatomic) NSMutableArray *nameArray; self.nameArray是访问属性的,而_nameArray是访问

2016-06-15 14:09:28 630

转载 iOS button和tap手势冲突 解决方案

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { CGPoint location = [touch locationInView:self.view]; if(CGRectContainsPoint(button.f

2016-05-18 15:02:07 1772

翻译 iOS tableView编辑删除(单选 多选)

#define keyForChecked [NSString stringWithFormat:@"%ld", (long)indexPath.row] viewDidload 添加_contacts数组(添加字典标记)和数据源_reouseArray相同个数 for (int i = 0; i <_reouseArray.count ; i++) { NSMutableDictionary

2016-05-18 10:02:03 1504

翻译 iOS 代码适配

AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AppDelegate *autoSizeDelegate = [[UIApplication sharedApplication] delegat

2016-05-07 17:56:58 448

转载 iOS 视图抖动动画

- (void)viewDidLoad {     [super viewDidLoad];     UIView * vi = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];     vi.backgroundColor = [UIColor redColor];     [

2016-05-07 14:48:02 541

转载 iOS 归档、解档

.h文件 @interface Person : NSObjectNSCoding> {     NSString *name;     int age;     NSString *phone; } @property(nonatomic,retain)NSString *name, *phone; @property(nonatomic,assi

2016-05-06 17:46:03 507

翻译 在iOS中,摄像头录制的视频是mov格式的,虽然mov兼容mp4,但是有些需求需要用到mp4格式的视频文件。

AVURLAsset *avAsset = [AVURLAsset URLAssetWithURL:[NSURL fileURLWithPath:path] options:nil]; NSArray *compatiblePresets = [AVAssetExportSession exportPresetsCompatibleWithAsset:avAsset]; if ([compati

2016-05-04 14:31:34 3532

iOS 播放PCM文件

iOS 播放PCM文件demo

2017-01-17

空空如也

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

TA关注的人

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