<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[SCDNBB的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/SCDNBB</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; SCDNBB]]></copyright><item><title><![CDATA[swift- realmswift本地数据库使用与常见问题]]></title><link>https://blog.csdn.net/SCDNBB/article/details/127234251</link><guid>https://blog.csdn.net/SCDNBB/article/details/127234251</guid><author>SCDNBB</author><pubDate>Sun, 09 Oct 2022 21:13:46 +0800</pubDate><description><![CDATA[realmswift 常见问题与使用]]></description><category></category></item><item><title><![CDATA[iOS核心动画]]></title><link>https://blog.csdn.net/SCDNBB/article/details/125536388</link><guid>https://blog.csdn.net/SCDNBB/article/details/125536388</guid><author>SCDNBB</author><pubDate>Thu, 30 Jun 2022 10:56:11 +0800</pubDate><description><![CDATA[iOS核心动画：显式动画、隐式动画]]></description><category></category></item><item><title><![CDATA[iOS swift 引导页（镂空）引导操作下一步样式（引导样式为collectionview带定位）]]></title><link>https://blog.csdn.net/SCDNBB/article/details/124987885</link><guid>https://blog.csdn.net/SCDNBB/article/details/124987885</guid><author>SCDNBB</author><pubDate>Thu, 26 May 2022 17:18:52 +0800</pubDate><description><![CDATA[iOS swift 引导页（镂空设计）引导操作下一步样式（引导样式为collectionview带定位）
整体提示的代码
dropBox（使用梯子显示）WorkBenchTipView.swift
https://www.dropbox.com/s/d7skghoi6htp5g5/WorkBenchTipView.swift?dl=0
设计样式
小屏手机

大屏手机
第一个如果顶部没有东西分别显示


设计方案：
**整体:**在该页面的请求都完成后，在window层addsubview一个与占满屏幕的vi]]></description><category></category></item><item><title><![CDATA[swift和OC的闭包浅析]]></title><link>https://blog.csdn.net/SCDNBB/article/details/124833327</link><guid>https://blog.csdn.net/SCDNBB/article/details/124833327</guid><author>SCDNBB</author><pubDate>Wed, 18 May 2022 00:08:59 +0800</pubDate><description><![CDATA[swift
自动闭包
**自动闭包(@autoclosure) **  官方的 ?? || &amp;&amp;就是autoClosure
自动闭包是一种自动创建的用来把作为实际参数传递给函数的表达式打包的闭包。它不接受任何实际参数，并且当它被调用时，它会返回内部打包的表达式的值
public func ?? &lt;T&gt;(optional: T?, defaultValue: @autoclosure () throws -&gt; T) rethrows -&gt; T

func ??&lt;T]]></description><category></category></item><item><title><![CDATA[flutter 通讯录]]></title><link>https://blog.csdn.net/SCDNBB/article/details/124785814</link><guid>https://blog.csdn.net/SCDNBB/article/details/124785814</guid><author>SCDNBB</author><pubDate>Sun, 15 May 2022 18:29:21 +0800</pubDate><description><![CDATA[flutter 通讯录
工程仓库
国内的话需要梯子打开
https://www.dropbox.com/sh/u9s38957amql3yc/AABc3ncZd8L2gMtMAy83FKL0a?dl=0
如果不能下载的话请私信我
样式长这样


需求分析：
1、滑动会影响到右边的导航栏。
2、右边的导航栏具有点击和拖动的手势，位置点到的位置会影响到左边的list。
3、当list的导航栏的索引没有对应的list会选择最近的list。
4、当最后的list不占满的话，选倒数第二个list，若倒数第二个也不占满]]></description><category></category></item><item><title><![CDATA[iOS swift swiftLint m1 安装+规则]]></title><link>https://blog.csdn.net/SCDNBB/article/details/124383277</link><guid>https://blog.csdn.net/SCDNBB/article/details/124383277</guid><author>SCDNBB</author><pubDate>Sun, 24 Apr 2022 15:06:08 +0800</pubDate><description><![CDATA[iOS swiftLint m1 安装+规则
m1安装
终端不使用Rosetta

brew install swiftlint

Cocapods 安装
pod 'SwiftLint'

打开项目xcode，新建两个脚本命令


这里分别复制

if which swiftlint &gt;/dev/null; then
swiftlint
#echo "skip"
else
echo "warning: SwiftLint not installed, download from https://git]]></description><category></category></item><item><title><![CDATA[flutter 底部弹窗showModalBottomSheet 超过9/16高度 键盘弹出不影响弹窗布局]]></title><link>https://blog.csdn.net/SCDNBB/article/details/123634856</link><guid>https://blog.csdn.net/SCDNBB/article/details/123634856</guid><author>SCDNBB</author><pubDate>Mon, 21 Mar 2022 14:26:23 +0800</pubDate><description><![CDATA[flutter 底部弹窗showModalBottomSheet 超过9/16高度 键盘弹出不影响弹窗布局
问题展示：底部弹窗的高度超过9/16（必须要用isScrollControlled: true），并且有输入框输入文本。当焦点在文本里，键盘会弹出把底部弹窗给顶出去。问题：屏幕高度&lt; 弹框+键盘高度

flutter 的底部弹窗控件为showModalBottomSheet
超过9/16高度
isScrollControlled: true,
showModalBottomSheet(
    ]]></description><category></category></item><item><title><![CDATA[Alamofire源码分析]]></title><link>https://blog.csdn.net/SCDNBB/article/details/123389136</link><guid>https://blog.csdn.net/SCDNBB/article/details/123389136</guid><author>SCDNBB</author><pubDate>Wed, 09 Mar 2022 22:23:41 +0800</pubDate><description><![CDATA[源码分析
（test工程+源码注释工程）https://www.dropbox.com/sh/v7poaxekotxlaf1/AADQb7NbrrfHXJLrBt1Q51vVa?dl=0

整体的流程图

创建Session用来发送请求，可以自定义创建，也可以直接使用AF单例，默认的Session来发送请求

外部调用request()方法，传入URLConvertible，创建Request对象


内部开始先用URLConvertible来创建URLRequestConvertible对象
用URLRe]]></description><category></category></item><item><title><![CDATA[设计模式 结合Alamofire]]></title><link>https://blog.csdn.net/SCDNBB/article/details/123389109</link><guid>https://blog.csdn.net/SCDNBB/article/details/123389109</guid><author>SCDNBB</author><pubDate>Wed, 09 Mar 2022 22:17:20 +0800</pubDate><description><![CDATA[设计模式 结合Alamofire
单例模式
保证一个类仅有一个实例。
单例一旦创建，对象指针保存在静态区，单例对象在堆中分配的内存空间只有等程序结束才能释放，所以过多的单例会增大内存的小号。如果不是应用程序的生命周期短，就不应该使用单例。一般是伴随着程序的出生和结束的，所以一般使用单例模式来封装网络请求。
public let AF = Session.default
网络状态监听管理器
public static let `default` = NetworkReachabilityManager()

]]></description><category></category></item><item><title><![CDATA[Flutter 键盘与SingleChildScrollview配合使用 键盘滑动隐藏]]></title><link>https://blog.csdn.net/SCDNBB/article/details/123133541</link><guid>https://blog.csdn.net/SCDNBB/article/details/123133541</guid><author>SCDNBB</author><pubDate>Fri, 25 Feb 2022 15:07:47 +0800</pubDate><description><![CDATA[flutter 键盘与singleChildScrollview配合使用
隐藏键盘一般是点击屏幕（非textField）位置。但遇到复杂页面，类似scrollview的，有可能需要滑动隐藏键盘。
flutter不用设置任何的位置跳转，只要点击textField就会自动滑到对应的位置。
滑动隐藏键盘
使用通知监听NotificationListener里对scrollview的滑动事件监听ScrollUpdateNotification
//滑动隐藏键盘
    return NotificationList]]></description><category></category></item><item><title><![CDATA[iOS 10 UICollectionView 索引不存在问题 UICollectionView received layout attributes for a cell with an index]]></title><link>https://blog.csdn.net/SCDNBB/article/details/122822600</link><guid>https://blog.csdn.net/SCDNBB/article/details/122822600</guid><author>SCDNBB</author><pubDate>Tue, 08 Feb 2022 13:57:06 +0800</pubDate><description><![CDATA[iOS 10 UICollectionView 索引不存在问题 UICollectionView received layout attributes for a cell with an index path that does not exist
报的错误是

解决方法，在reloadData后添加.collectionViewLayout invalidateLayout
[self.tagCollectionView reloadData];
  [self.tagCollectionView.co]]></description><category></category></item><item><title><![CDATA[swift - WKWebView api功能分析]]></title><link>https://blog.csdn.net/SCDNBB/article/details/122698303</link><guid>https://blog.csdn.net/SCDNBB/article/details/122698303</guid><author>SCDNBB</author><pubDate>Wed, 26 Jan 2022 11:38:30 +0800</pubDate><description><![CDATA[WKWebView
参考文章
(https://github.com/wszxy/WKWebViewCookie/tree/7861c27af73ba8522dca36cc0dee218d133ba0da)
工程文件
https://www.dropbox.com/sh/qghyu9xho6cgqfl/AAAf0QMjnGnJXhGAFYfLSXnAa?dl=0
WKWebViewConfiguration
用户代理字符串中使用的应用程序的名称 （不明白)
open var applicationNameF]]></description><category></category></item><item><title><![CDATA[Flutter顶部TabBar和表格TableRow]]></title><link>https://blog.csdn.net/SCDNBB/article/details/122580877</link><guid>https://blog.csdn.net/SCDNBB/article/details/122580877</guid><author>SCDNBB</author><pubDate>Wed, 19 Jan 2022 14:47:47 +0800</pubDate><description><![CDATA[Flutter顶部TabBar和表格TableRow
需求：
显示样式为这样

1、可左右滑动切换表格
2、网络请求：一、切换才请求页面，二、表格有页码，支持上下拉刷新加载更多
3、表格做缓存处理（用户滑到哪里，切换表格再切回来还是那个位置）
4、点击行触发事件跳转
5、跳转后下一个页面影响到该页面的数据（重新更新数据）
UI代码分析
TabBar
如果单独写TabBar的话，会直接占满整个屏幕的宽度，所以外面需要套一层Container控制它的宽高。
TabBar的controller为
_tabCont]]></description><category></category></item><item><title><![CDATA[flutter 自定义日历选择（没有用到第三方日历库）]]></title><link>https://blog.csdn.net/SCDNBB/article/details/121236171</link><guid>https://blog.csdn.net/SCDNBB/article/details/121236171</guid><author>SCDNBB</author><pubDate>Tue, 09 Nov 2021 21:01:19 +0800</pubDate><description><![CDATA[flutter 自定义日历选择
禁止转载、抄袭
功能需求
实现后是长这样的（因为项目要以底部弹窗显示，也可以整个UI自定义）
要代码的私信我（看人品回复）

项目需求：

星期一在第一，星期日在最后
一开始显示的是当前月份
有startTime和endTime的限制，所以并不是每个日期都能选择
选择全部工作日按钮，意思是除了星期六日和第三点的条件都选择
已选统计选了多少天，下一步把选择的传到下个页面
没有说需不需要滑动切换月份（我是没做了）
在第3点外的月份不能点击全选

干就完事了
我看了日历第三方库，有]]></description><category></category></item><item><title><![CDATA[iOS swift自定义日历]]></title><link>https://blog.csdn.net/SCDNBB/article/details/121088143</link><guid>https://blog.csdn.net/SCDNBB/article/details/121088143</guid><author>SCDNBB</author><pubDate>Tue, 02 Nov 2021 10:07:07 +0800</pubDate><description><![CDATA[swift自定义日历（暂不支持滑动切换）
拒绝转载，抄袭更不允许！！！！求别污染分享环境
原图是这样的

功能介绍

暂不支持滑动切换月份，navigator右边是切换月份，每切换一次的月份会网络请求新的数据。
当月的下一个月不能点击
星期六日样式不一样，点击到当前cell的样式不一样，还没到的日期样式不一样，且不能点击（这优先级高）
当月的话是默认点击当天的位置，若非本月默认第一个（可做有数据的第一个）
数据返回的不是以每一天来返回，要对数据的时间进行遍历分析
若点击到没有数据的cell，底部的信息框将不]]></description><category></category></item><item><title><![CDATA[flutter学习之旅-进度条自定义控件]]></title><link>https://blog.csdn.net/SCDNBB/article/details/120994430</link><guid>https://blog.csdn.net/SCDNBB/article/details/120994430</guid><author>SCDNBB</author><pubDate>Wed, 27 Oct 2021 15:41:41 +0800</pubDate><description><![CDATA[控件是长这样的

代码实现是这样的


import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class RefoundDetailProgress extends StatelessWidget {
  const RefoundDetailProgress({Key key}) : super(key: key);

  @override
  Widget build(BuildContext]]></description><category></category></item><item><title><![CDATA[swift学习之旅---SJVideoPlayer库]]></title><link>https://blog.csdn.net/SCDNBB/article/details/120417338</link><guid>https://blog.csdn.net/SCDNBB/article/details/120417338</guid><author>SCDNBB</author><pubDate>Wed, 22 Sep 2021 16:24:48 +0800</pubDate><description><![CDATA[SJVideoPlayer（swift）
https://github.com/changsanjiang/SJVideoPlayer 非常优秀的库，而且里面有大量的demo来供我们学习，给作者加颗星不过分吧
610197491 库作者的官方群，如果遇到奇葩的问题找江哥解决
pod ‘SJVideoPlayer’
哔哩哔哩的ijkplayer在M1电脑跑太糟心了，真机不能跑，报的错误都是关于arm64的，网上我找不到教程，而且作者也好像不管这个库的更新了，到目前为止最近一次更新为5个月前，发了issues也]]></description><category></category></item><item><title><![CDATA[AsyncDisplaykit(Texture)技术分享]]></title><link>https://blog.csdn.net/SCDNBB/article/details/120225588</link><guid>https://blog.csdn.net/SCDNBB/article/details/120225588</guid><author>SCDNBB</author><pubDate>Fri, 10 Sep 2021 17:04:03 +0800</pubDate><description><![CDATA[AsyncDisplaykit(Texture)技术分享
官方Texture文档：https://texturegroup.org/docs/getting-started.html
github: https://github.com/TextureGroup/Texture
可以下载github里example的代码看
UIKit的绘制机制图解
CALayer的display方法由系统调用，用来更新layer的内容，如果layer有delegate对象，那么display方法将尝试调用delegate的]]></description><category></category></item><item><title><![CDATA[OC学习2021-08]]></title><link>https://blog.csdn.net/SCDNBB/article/details/119874529</link><guid>https://blog.csdn.net/SCDNBB/article/details/119874529</guid><author>SCDNBB</author><pubDate>Mon, 23 Aug 2021 17:53:50 +0800</pubDate><description><![CDATA[OC学习
navigationcontroller
不显示navigationBar
需要设置代理来控制navigation
@interface LoginViewController () &lt;UINavigationControllerDelegate&gt;

代理方法
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewControll]]></description><category></category></item><item><title><![CDATA[2021-07-12-16 Objective-C学习文档]]></title><link>https://blog.csdn.net/SCDNBB/article/details/118803689</link><guid>https://blog.csdn.net/SCDNBB/article/details/118803689</guid><author>SCDNBB</author><pubDate>Fri, 16 Jul 2021 16:46:54 +0800</pubDate><description><![CDATA[2021-07-12-16学习文档OC语法命令行编译（Clang编译器）内存weak strong copy assignid类型拷贝写法、重写NSString、NSMutableStringNSArray数组NSDictionary 表protocolOC内存优化OC函数库使用UIAlertController动画延迟方法xib使用自动布局KVC使用MVP
OC语法
命令行编译（Clang编译器）
终端编译 ：Clang -fobjc-arc 文件 -o
编译器-内存管理  -o输出 输出文件
内存
内存]]></description><category></category></item></channel></rss>