<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mingC0758的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/mingC0758</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; mingC0758]]></copyright><item><title><![CDATA[UIButton、UIGestureRecognizer和hitTest]]></title><link>https://blog.csdn.net/mingC0758/article/details/110508615</link><guid>https://blog.csdn.net/mingC0758/article/details/110508615</guid><author>mingC0758</author><pubDate>Thu, 03 Dec 2020 00:52:15 +0800</pubDate><description><![CDATA[UIButton、UIGestureRecognizer和hitTest概述需求现状解决方案其他userInteractionEnable和hitTest的关系
概述


父视图是一个普通的UIView，添加了点击手势UITapGestureRecognizer；
UIButton可以点击
UIView的userInteractionEnable = YES（默认值），无手势
UIBotton和UIView都是GeastureContainerView的子View

需求
当点击UIView时，既不响应UI]]></description><category></category></item><item><title><![CDATA[UIView的三个控制触摸回调的方法]]></title><link>https://blog.csdn.net/mingC0758/article/details/109994996</link><guid>https://blog.csdn.net/mingC0758/article/details/109994996</guid><author>mingC0758</author><pubDate>Mon, 23 Nov 2020 14:16:39 +0800</pubDate><description><![CDATA[cancelsTouchesInView/delaysTouchesBegan/delaysTouchesEnded


(0)首先要知道的是
1.这3个属性是作用于GestureRecognizers(手势识别)与触摸事件之间联系的属性。实际应用中好像很少会把它们放到一起，大多都只是运用手势识别，所以这3个属性应该很少会用到。
2.对于触摸事件，window只会有一个控件来接收touch。这个控件是首先接触到touch的并且重写了触摸事件方法（一个即可）的控件
3.手势识别和触摸事件是两个独立的事，只是可]]></description><category></category></item><item><title><![CDATA[iOS使用系统提供的高斯模糊组件]]></title><link>https://blog.csdn.net/mingC0758/article/details/109289118</link><guid>https://blog.csdn.net/mingC0758/article/details/109289118</guid><author>mingC0758</author><pubDate>Mon, 26 Oct 2020 21:40:15 +0800</pubDate><description><![CDATA[UIBlurEffect

UIBlurEffect will provide a blur that appears to have been applied to the content layered behind the UIVisualEffectView. Views added to the contentView of a blur visual effect are not blurred themselves.


UIBlurEffect需要结合UIVisualEffectView来使]]></description><category></category></item><item><title><![CDATA[XCode单元测试简单示例]]></title><link>https://blog.csdn.net/mingC0758/article/details/109286099</link><guid>https://blog.csdn.net/mingC0758/article/details/109286099</guid><author>mingC0758</author><pubDate>Mon, 26 Oct 2020 14:09:15 +0800</pubDate><description><![CDATA[简单示例


创建工程的时候勾选上☑️Include Tests


XCode会自动创建Test的两个Target


打开.m文件，自动生成了几个方法，这几个方法的调用顺序如下：
2020-10-26 11:04:49.963661+0800 同朕checkcheck[89934:2711233] ---setUp
2020-10-26 11:04:49.963781+0800 同朕checkcheck[89934:2711233] ---testPerformanceExample
2020-10-2]]></description><category></category></item><item><title><![CDATA[Swift苹果官方教程文档阅读和学习]]></title><link>https://blog.csdn.net/mingC0758/article/details/107773442</link><guid>https://blog.csdn.net/mingC0758/article/details/107773442</guid><author>mingC0758</author><pubDate>Wed, 05 Aug 2020 14:21:19 +0800</pubDate><description><![CDATA[入门文档

Guide Book：https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html
Swift Feature： https://developer.apple.com/swift/

问题记录
Swift Feature

值类型


And Swift heavily leverages value types, especially for commonly used types like Arrays and Diction]]></description><category></category></item><item><title><![CDATA[iOS bounds备忘]]></title><link>https://blog.csdn.net/mingC0758/article/details/107606802</link><guid>https://blog.csdn.net/mingC0758/article/details/107606802</guid><author>mingC0758</author><pubDate>Mon, 27 Jul 2020 11:10:18 +0800</pubDate><description><![CDATA[背景：在系统状态栏下方加一个UICollectionView，发现UICollectionView自动向下偏移了20px，观察布局发现UICollectionView.bounds.y = -20。
原因：UICollectionView所在VC少写self.automaticallyAdjustsScrollViewInsets = NO; 被系统搞了collectionView.bounds.y = -20
https://blog.csdn.net/mad1989/article/details/87]]></description><category></category></item><item><title><![CDATA[字节跳动客户端部门直招]]></title><link>https://blog.csdn.net/mingC0758/article/details/105049453</link><guid>https://blog.csdn.net/mingC0758/article/details/105049453</guid><author>mingC0758</author><pubDate>Mon, 23 Mar 2020 15:24:01 +0800</pubDate><description><![CDATA[先自我介绍一下，我是19届广工毕业生，也是通过????客的内推进来的头条深研客户端团队，做过Android开发、iOS开发、跨平台开发，可以说头条是一个非常适合应届生成长的平台，所以欢迎大家向我投递简历
，想要了解更多信息或者客户端方向、学习上的交流，都可以加我的微信: mominlive520
下面进入正题：
【招*要求】

接受校招和社招
不需要客户端开发经验和项目经验，部门提供入职培训，包学包会
...]]></description><category></category></item><item><title><![CDATA[利用XCode进行iOS模拟定位]]></title><link>https://blog.csdn.net/mingC0758/article/details/102820616</link><guid>https://blog.csdn.net/mingC0758/article/details/102820616</guid><author>mingC0758</author><pubDate>Wed, 30 Oct 2019 15:51:54 +0800</pubDate><description><![CDATA[利用XCode进行iOS模拟定位


打开项目的scheme配置



在options中打开Allow Location Simulation开关，在Default Location中有常用的地点供模拟



手动编写gpx后缀的文件


在这个网站查询对应地点的经纬度： https://jingweidu.51240.com/，填入下面的xml文件中

location.gpx

&lt;?x...]]></description><category></category></item><item><title><![CDATA[NSNotification 你不知道的使用技巧]]></title><link>https://blog.csdn.net/mingC0758/article/details/101218582</link><guid>https://blog.csdn.net/mingC0758/article/details/101218582</guid><author>mingC0758</author><pubDate>Mon, 23 Sep 2019 18:37:43 +0800</pubDate><description><![CDATA[NSNotification使用姿势
基本使用
发送通知：
- (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo;


aName：通知名称
anObject：发送者（sender）
aUserIn...]]></description><category></category></item><item><title><![CDATA[iOS Runtime之isa指针探索与object_setClass的实质]]></title><link>https://blog.csdn.net/mingC0758/article/details/101218555</link><guid>https://blog.csdn.net/mingC0758/article/details/101218555</guid><author>mingC0758</author><pubDate>Mon, 23 Sep 2019 18:36:51 +0800</pubDate><description><![CDATA[iOS Runtime之isa指针探索与object_setClass的实质
探索isa的指向
测试代码：
@interface Company : NSObject
@property (assign, nonatomic) int cid;
@end

    Company *company = [Company new];
    company.cid = 255;
    NSLog(...]]></description><category></category></item><item><title><![CDATA[iOS触摸优先级&&多手势处理]]></title><link>https://blog.csdn.net/mingC0758/article/details/101076638</link><guid>https://blog.csdn.net/mingC0758/article/details/101076638</guid><author>mingC0758</author><pubDate>Fri, 20 Sep 2019 20:20:18 +0800</pubDate><description><![CDATA[一张图说明iOS触摸优先级


手势识别器  -&gt;  响应链的	onTouchBegin、onTouchMoved…
若手势识别器已经处理了，那么不会传递到响应链，相应的onTouchBegin、onTouchMoved…也不会被调用

多个手势的处理
通过设置gestureRecognizer的delegate，delegate实现：
- (BOOL)gestureRecognizer:(...]]></description><category></category></item><item><title><![CDATA[【转载】NSOperation]]></title><link>https://blog.csdn.net/mingC0758/article/details/99452729</link><guid>https://blog.csdn.net/mingC0758/article/details/99452729</guid><author>mingC0758</author><pubDate>Tue, 13 Aug 2019 17:22:44 +0800</pubDate><description><![CDATA[转自：https://www.jianshu.com/p/73b5f5dda06a


同步与异步函数：
1.1 同步函数：NSOperation中，任务的start方法是同步函数，start是让任务在当前线程中同步串行执行，并且调用内部的main方法
a  如果要让任务在当前线程执行，就直接创建任务并start，而不是加入到队列中
1.2 异步函数：NSOperationQueue都是异步函数。...]]></description><category></category></item><item><title><![CDATA[iOS crash分类]]></title><link>https://blog.csdn.net/mingC0758/article/details/98659480</link><guid>https://blog.csdn.net/mingC0758/article/details/98659480</guid><author>mingC0758</author><pubDate>Wed, 07 Aug 2019 10:12:44 +0800</pubDate><description><![CDATA[iOS crash分类
OC Exception
Objective-C层的异常。
捕获方法：通过NSSetUncaughtExceptionHandler来设置处理器。
Mach Exception
捕获方法：task_set_exception_ports() 创建子线程、创建异常监听端口。
系统内核（mach）层面的异常。
最终转成SIGABRT。
总结几个常见的Mach异常（Excepti...]]></description><category></category></item><item><title><![CDATA[汇编相关]]></title><link>https://blog.csdn.net/mingC0758/article/details/97807468</link><guid>https://blog.csdn.net/mingC0758/article/details/97807468</guid><author>mingC0758</author><pubDate>Tue, 30 Jul 2019 20:59:02 +0800</pubDate><description><![CDATA[栈


栈是从高地址向低地址扩展的。
ebp指向栈的底部
esp指向栈的顶部

入栈操作：push eax;
等于ebp = ebp - 4;  eax-&gt;[ebp] （把eax的值存放到ebp位置上）
出栈操作：pop eax;
等于[ebp]-&gt;eax; ebp = ebp + 4;
函数调用
调用入栈：

返回出栈：


...]]></description><category></category></item><item><title><![CDATA[iOS 异常处理]]></title><link>https://blog.csdn.net/mingC0758/article/details/97657361</link><guid>https://blog.csdn.net/mingC0758/article/details/97657361</guid><author>mingC0758</author><pubDate>Tue, 30 Jul 2019 17:30:53 +0800</pubDate><description><![CDATA[自定义异常
- (void) willCrash {
    NSDictionary *userInfo = @{@"age":@12, @"text":@"momingqi is man."};
    NSException *exception = [NSException exceptionWithName:@"自定义异常" reason:@"自定义异常原因" userInfo:user...]]></description><category></category></item><item><title><![CDATA[Objective-C 单例模式的实现]]></title><link>https://blog.csdn.net/mingC0758/article/details/96839243</link><guid>https://blog.csdn.net/mingC0758/article/details/96839243</guid><author>mingC0758</author><pubDate>Mon, 22 Jul 2019 12:47:17 +0800</pubDate><description><![CDATA[OC中实现单例模式
最简单的写法，存在线程安全问题：
@implementation Singleton

+ (instancetype)shareInstance {
    static Singleton *instance = nil;
    if (! instance) {
        instance = [[Singleton alloc] init];
    }
   ...]]></description><category></category></item><item><title><![CDATA[Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)的崩溃原因]]></title><link>https://blog.csdn.net/mingC0758/article/details/96494004</link><guid>https://blog.csdn.net/mingC0758/article/details/96494004</guid><author>mingC0758</author><pubDate>Sat, 20 Jul 2019 23:45:16 +0800</pubDate><description><![CDATA[崩溃场景
在学习iOS多线程的时候，编写了一个demo：
dispatch_queue_t queue = dispatch_queue_create("gcd_test_label", DISPATCH_QUEUE_CONCURRENT);
    [queue addObserver:self forKeyPath:@"isExecuting" options:NSKeyValueObserv...]]></description><category></category></item><item><title><![CDATA[iOS KVO和KVC介绍]]></title><link>https://blog.csdn.net/mingC0758/article/details/96479962</link><guid>https://blog.csdn.net/mingC0758/article/details/96479962</guid><author>mingC0758</author><pubDate>Fri, 19 Jul 2019 15:49:05 +0800</pubDate><description><![CDATA[iOS KVO和KVC介绍
KVO和KVC都是基于对NSObject的扩展来实现的，所有继承于NSObject的子类都能使用KVO和KVC。
用来测试的model：
@interface User : NSObject
@property (assign, nonatomic) NSInteger uid;
@property (copy, nonatomic) NSString *name;
@...]]></description><category></category></item><item><title><![CDATA[iOS文件存储学习]]></title><link>https://blog.csdn.net/mingC0758/article/details/96166507</link><guid>https://blog.csdn.net/mingC0758/article/details/96166507</guid><author>mingC0758</author><pubDate>Tue, 16 Jul 2019 18:45:15 +0800</pubDate><description><![CDATA[//
//  ViewController.m
//  MakeStrong
//
//  Created by momingqi on 2019/7/15.
//  Copyright © 2019 momingqi. All rights reserved.
//

#import "ViewController.h"
#import &lt;sqlite3.h&gt;
#import &lt...]]></description><category></category></item><item><title><![CDATA[sizeToFits和sizeThatFits]]></title><link>https://blog.csdn.net/mingC0758/article/details/95939642</link><guid>https://blog.csdn.net/mingC0758/article/details/95939642</guid><author>mingC0758</author><pubDate>Mon, 15 Jul 2019 10:29:20 +0800</pubDate><description><![CDATA[sizeToFits和sizeThatFits
sizeToFits


numberOfLines = 1  的时候调用  sizeToFit()  只会修改 label 的 width


numberOfLines != 1 的时候调用 sizeToFit() 的时候会在第一调用的时候确认 label 的 width。


如果 调用 sizeToFit() 得到的宽度小于 label.bo...]]></description><category></category></item></channel></rss>