<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Mayxc的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Mayxc</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Mayxc]]></copyright><item><title><![CDATA[iOS Xcode 升级Xcode15报错: SDK does not contain ‘libarclite‘ at the path ‘/Applications/Xcode.app/Con...]]></title><link>https://blog.csdn.net/Mayxc/article/details/143333585</link><guid>https://blog.csdn.net/Mayxc/article/details/143333585</guid><author>Mayxc</author><pubDate>Tue, 29 Oct 2024 16:36:41 +0800</pubDate><description><![CDATA[这个报错是缺少了arc的部分文件，在这个路径下把缺少的文件添加就可以了。find  然后快捷键 cmd+shif+g。缺少的文件在文章顶部 自己下载就可以了。]]></description><category></category></item><item><title><![CDATA[Swift YYLabel 高亮 点击事件]]></title><link>https://blog.csdn.net/Mayxc/article/details/139521906</link><guid>https://blog.csdn.net/Mayxc/article/details/139521906</guid><author>Mayxc</author><pubDate>Fri, 07 Jun 2024 11:12:32 +0800</pubDate><description><![CDATA[【代码】Swift YYLabel 高亮 点击事件。]]></description><category></category></item><item><title><![CDATA[Swift scrollView中通过代码控制View的显示]]></title><link>https://blog.csdn.net/Mayxc/article/details/134547405</link><guid>https://blog.csdn.net/Mayxc/article/details/134547405</guid><author>Mayxc</author><pubDate>Wed, 22 Nov 2023 10:17:36 +0800</pubDate><description><![CDATA[【代码】Swift scrollView中通过代码控制View的显示。]]></description><category></category></item><item><title><![CDATA[iOS APP黑白灰模式]]></title><link>https://blog.csdn.net/Mayxc/article/details/128130462</link><guid>https://blog.csdn.net/Mayxc/article/details/128130462</guid><author>Mayxc</author><pubDate>Thu, 01 Dec 2022 13:22:20 +0800</pubDate><description><![CDATA[1.创建一个继承UIView的view，然后关闭该View的点击事件。OK，以上就是黑白模式的开启，非常简单。仅适用于iOS12以上版本。APP开启黑白灰模式。]]></description><category></category></item><item><title><![CDATA[Python 文件基本操作]]></title><link>https://blog.csdn.net/Mayxc/article/details/128128566</link><guid>https://blog.csdn.net/Mayxc/article/details/128128566</guid><author>Mayxc</author><pubDate>Thu, 01 Dec 2022 11:02:05 +0800</pubDate><description><![CDATA[（3）os.remove(file_data)调用删除文件。（2）os.listdir()获取当前文件下所有文件名称。2.思路：（1）确定文件路径。4.读取指定text文件内容。1.Python 删除文件。3.创建文件，并写入数据。]]></description><category></category></item><item><title><![CDATA[NSTimer 滑动导致失效]]></title><link>https://blog.csdn.net/Mayxc/article/details/127101609</link><guid>https://blog.csdn.net/Mayxc/article/details/127101609</guid><author>Mayxc</author><pubDate>Thu, 29 Sep 2022 10:01:06 +0800</pubDate><description><![CDATA[解决方法：1.通过修改timer默认mode, NSRunLoopCommonModes(滑动时主线程会从NSDefaultRunLoopMode切换为UITrackingRunLoopMode，导致timer停止运行)1.封装一个NSTimer  作用：防止循环引用。2.NStimer 在滑动时停止运行，注意点：在主线程刷新ui。2.通过创建子线程。]]></description><category></category></item><item><title><![CDATA[iOS UITableView 滑动到指定位置]]></title><link>https://blog.csdn.net/Mayxc/article/details/126969157</link><guid>https://blog.csdn.net/Mayxc/article/details/126969157</guid><author>Mayxc</author><pubDate>Wed, 21 Sep 2022 11:22:35 +0800</pubDate><description><![CDATA[iOS UITableView 滑动到指定位置]]></description><category></category></item><item><title><![CDATA[iOS 那些不为人知的bug: Error Domain=NSCocoaErrorDomain Code=3840]]></title><link>https://blog.csdn.net/Mayxc/article/details/126931613</link><guid>https://blog.csdn.net/Mayxc/article/details/126931613</guid><author>Mayxc</author><pubDate>Mon, 19 Sep 2022 13:05:11 +0800</pubDate><description><![CDATA[Error Domain=NSCocoaErrorDomain Code=3840 ]]></description><category></category></item><item><title><![CDATA[Swift 日历添加事件 删除事件]]></title><link>https://blog.csdn.net/Mayxc/article/details/114266116</link><guid>https://blog.csdn.net/Mayxc/article/details/114266116</guid><author>Mayxc</author><pubDate>Mon, 01 Mar 2021 16:45:56 +0800</pubDate><description><![CDATA[import EventKit
/**
 Privacy - Calendars Usage Description 添加日历权限 info.list 配置权限
 */
/// 日历添加事件
class KKAddEventClasse: NSObject {
    /// 添加成功回调
    typealias SuccessAddEvent = ((_ identifier: String) -&gt; Void)
    /// 添加失败回调
    typealias ErrorAddEven.]]></description><category></category></item><item><title><![CDATA[Swift present 半透明视图 tabbar隐藏问题]]></title><link>https://blog.csdn.net/Mayxc/article/details/110390540</link><guid>https://blog.csdn.net/Mayxc/article/details/110390540</guid><author>Mayxc</author><pubDate>Mon, 30 Nov 2020 16:04:24 +0800</pubDate><description><![CDATA[let modalVC = UIViewController()
modalVC.modalPresentationStyle = .overCurrentContext
modalVC.view.backgroundColor = rgbEqueAlpha(18, 0.9)
self.tabBarController?.present(modalVC, animated: false)


]]></description><category></category></item><item><title><![CDATA[UISegmentedControl iOS 13 tintColor 失效问题]]></title><link>https://blog.csdn.net/Mayxc/article/details/109385714</link><guid>https://blog.csdn.net/Mayxc/article/details/109385714</guid><author>Mayxc</author><pubDate>Fri, 30 Oct 2020 15:11:46 +0800</pubDate><description><![CDATA[extension UISegmentedControl {
    func fallBackToPreIOS13Layout(using tintColor: UIColor) {
        if #available(iOS 13, *) {
            let backGroundImage = UIImage(color: .clear, size: CGSize(width: 1, height: 32))
            let dividerImage = UII.]]></description><category></category></item><item><title><![CDATA[iOS Swift 判断手机机型 已更新 至iPhone12]]></title><link>https://blog.csdn.net/Mayxc/article/details/109238695</link><guid>https://blog.csdn.net/Mayxc/article/details/109238695</guid><author>Mayxc</author><pubDate>Fri, 23 Oct 2020 11:09:27 +0800</pubDate><description><![CDATA[/// 扩展UIDevice
extension UIDevice {
    
    /// 获取设备具体详细的型号
    var modelName: String {
        
        var systemInfo = utsname()
        uname(&amp;systemInfo)
        
        let machineMirror = Mirror(reflecting: systemInfo.machine)
        let ide.]]></description><category></category></item><item><title><![CDATA[Mac使用Charles进行HTTPS抓包]]></title><link>https://blog.csdn.net/Mayxc/article/details/109203304</link><guid>https://blog.csdn.net/Mayxc/article/details/109203304</guid><author>Mayxc</author><pubDate>Wed, 21 Oct 2020 16:01:47 +0800</pubDate><description><![CDATA[第一步 配置HTTP代理，这步与抓取HTTP请求是一样的：



选择在8888端口上监听，然后确定。勾选了SOCKS proxy，还能截获到浏览器的http访问请求。





第二步 安装电脑端根证书：

首先在charles的 Help选项 选择 SSL Proxyings选项 再选择 Install Charles Root Certificate选项





设置信任：





第三步 配置SSL代理：

在charles的 Proxy选项选择SSL Proxy Settings


...]]></description><category></category></item><item><title><![CDATA[Swift:Lable 高度计算误差]]></title><link>https://blog.csdn.net/Mayxc/article/details/109157927</link><guid>https://blog.csdn.net/Mayxc/article/details/109157927</guid><author>Mayxc</author><pubDate>Mon, 19 Oct 2020 11:49:01 +0800</pubDate><description><![CDATA[项目中，发现同样的代码，在swift里面计算出来的高度是有误差的

但是用oc确没这个问题


#import "PHString.h"

@implementation PHString

/// 获取字符串size
/// @param string 字符串
/// @param lineSpacing 行数
/// @param fontSize 字符串字号
/// @param rectSize 给一个固定的宽或者高
+ (CGSize)getStringRectWith:(NSString *)s]]></description><category></category></item><item><title><![CDATA[正则表达式]]></title><link>https://blog.csdn.net/Mayxc/article/details/108884715</link><guid>https://blog.csdn.net/Mayxc/article/details/108884715</guid><author>Mayxc</author><pubDate>Wed, 30 Sep 2020 14:31:37 +0800</pubDate><description><![CDATA[一、校验数字的表达式
数字：^[0-9]*$
n位的数字：^\d{n}$
至少n位的数字：^\d{n,}$
m-n位的数字：^\d{m,n}$
零和非零开头的数字：^(0|[1-9][0-9]*)$
非零开头的最多带两位小数的数字：^([1-9][0-9]*)+(\.[0-9]{1,2})?$
带1-2位小数的正数或负数：^(\-)?\d+(\.\d{1,2})$
正数、负数、和小数：^(\-|\+)?\d+(\.\d+)?$
有两位小数的正实数：^[0-9]+(\.[0-9]{2})?$
有1~3位小数.]]></description><category></category></item><item><title><![CDATA[Swift 打开三方地图 腾讯地图、百度地图、高德地图、Apple 地图]]></title><link>https://blog.csdn.net/Mayxc/article/details/108509950</link><guid>https://blog.csdn.net/Mayxc/article/details/108509950</guid><author>Mayxc</author><pubDate>Thu, 10 Sep 2020 11:13:43 +0800</pubDate><description><![CDATA[需求：点击按钮打开三方地图导航，未安装应用跳转下载页面

首先配置白名单

在info.plist 添加LSApplicationQueriesSchemes

baidumap

iosamap

qqmap

1.点击导航按钮


 // MARK: 点击导航按钮
    @objc func touchgoMap() {
        let latitute = self.coordinate!.latitude
        let longitute = self.coordinate!..]]></description><category></category></item><item><title><![CDATA[swift 中类（class）和结构体（struct）区别]]></title><link>https://blog.csdn.net/Mayxc/article/details/108262611</link><guid>https://blog.csdn.net/Mayxc/article/details/108262611</guid><author>Mayxc</author><pubDate>Thu, 27 Aug 2020 16:05:36 +0800</pubDate><description><![CDATA[类（class）

引用类型：将一个对象赋值给另一个对象时，系统不会对此对象进行拷贝，而会将指向这个对象的指针赋值给另一个对象，当修改其中一个对象的值时，另一个对象的值会随之改变。

结构体（struct）

值类型：将一个对象赋值给另一个对象时，会对此对象进行拷贝，复制出一份副本给另一个对象，在修改其中一个对象的值时，不影响另外一个对象。

不同点：1.类属于引用类型，结构体属于值类型

2.类允许被继承，结构体不允许被继承

3.类中的每一个成员变量都必须被初始化，否则编译器会报错，而结构体不需要，编译]]></description><category></category></item><item><title><![CDATA[iOS webp图片展示处理]]></title><link>https://blog.csdn.net/Mayxc/article/details/108048821</link><guid>https://blog.csdn.net/Mayxc/article/details/108048821</guid><author>Mayxc</author><pubDate>Mon, 17 Aug 2020 09:25:39 +0800</pubDate><description><![CDATA[在项目中，发现webp的图片展示不了。

导入


# webp格式图片专门处理
  pod 'SDWebImageWebPCoder'

然后你会发现


libwebp 1.1.0 

这个无法加载

1.找到这个目录。


.cocoapods/repos/master/Specs/1/9/2/libwebp/1.1.0/libwebp.podspec.json

2.修改git地址


https://github.com/webmproject/libwebp.git





然后 po...]]></description><category></category></item><item><title><![CDATA[dyld: Library not loaded: @rpath iOS 13.3.1 真机 CocoaPods 三方库奔溃问题]]></title><link>https://blog.csdn.net/Mayxc/article/details/104392424</link><guid>https://blog.csdn.net/Mayxc/article/details/104392424</guid><author>Mayxc</author><pubDate>Wed, 19 Feb 2020 14:24:10 +0800</pubDate><description><![CDATA[问题表现形式：

1.dyld: Library not loaded: @rpath

2.当你解决掉这个引用问题，会发现在真机上面会奔溃在你引用三方的地方

问题出现系统版本：13.3.1 真机

解决方案：

1.注释掉Podfile中，use_frameworks

2.重新pod intall

此奔溃只有在iOS13.3.1真机上面出现问题。



希望能帮到同样有问题的人！
...]]></description><category></category></item><item><title><![CDATA[iOS:本地json文件读取、存储]]></title><link>https://blog.csdn.net/Mayxc/article/details/103698274</link><guid>https://blog.csdn.net/Mayxc/article/details/103698274</guid><author>Mayxc</author><pubDate>Wed, 25 Dec 2019 14:12:29 +0800</pubDate><description><![CDATA[// 读取本地JSON文件
- (NSArray *)readLocalFileWithName:(NSDictionary *)name {
    // 获取文件路径
            NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@"json"];
    // 将文件数据化
//    NSS...]]></description><category></category></item></channel></rss>