自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 Flutter [!] The ‘Pods-Runner‘ target has transitive dependencies that include statically linked bina

主工程使用use_frameworks!时,PodA 依赖 包含静态库的 PodB,pod install时报错。下面是遇到时候使用的解决方案 推荐使用。

2024-02-06 10:25:59 879

原创 java sql 时间跟随数据更新问题

sql

2023-02-17 11:37:45 317

原创 flutterWeb 跨域问题

在flutter\packages\flutter_tools\lib\src\web\chorme.dart文件中添加 --disable-web-security。然后就可以直接将代码运行到chorme上,不会再提示跨域异常,当然发布以后还是需要后台服务去配置,这个方法只能解决本地开发过程中出现的跨域问题。在cmd中执行flutter doctor。

2023-02-16 08:54:56 1403

原创 flutter 重写FloatingActionButtonLocation 自定义位置

FloatingActionButton的位置可以通过FloatingActionButtonLocation来设定,FloatingActionButtonLocation只有7个值这大大不能够满足我们需求比如我们在iPhoneX 以上的屏幕设置为 FloatingActionButtonLocation.centerDocked会自动给我们底部按钮添加安全区域、在安卓上展示直接沉入底部 这并不是我们所需要的结果。通过查看 FloatingActionButtonLocation 源码如下:a

2022-05-13 11:09:15 2240

原创 swift 视频列表播放+多文件下载

RPReplay_Final1650613922 class DownloadingController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = U...

2022-04-25 10:27:33 640 1

原创 flutter 踩坑日记持续更新

Flutter

2022-04-19 10:20:24 2428

原创 iOS 删除 SceneDelegeta.h

下面展示一些 内联代码片。# 删除项目 SceneDelegeta 文件// 删除SceneDelegeta.h和SceneDelegeta.m这两个文件// 在AppDelegate.h里面添加window属性![如图](https://img-blog.csdnimg.cn/de507ab83c60402db4019cefabdb6127.png#pic_center)//在AppDelegate.m里面,删除Scene相关的生命周期方法![如图](https://img-blog.cs

2022-04-09 22:01:18 372

原创 flutter 九宫格抽奖

下面展示一些 内联代码片。九宫格抽奖class SimpleLotteryValue { SimpleLotteryValue( {this.target = 0, this.isFinish = false, this.isPlaying = false}); /// 中奖目标 int target = 0; bool isPlaying = false; bool isFinish = false; SimpleLotteryValue copyWith(

2022-03-25 15:25:21 3471

原创 swift UITableViewCell 绘制边框加圆角

func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { let cornerRadius: CGFloat = 10 cell.backgroundColor = UIColor.clear let layer = CAShapeLayer() let pathRef = CGMutablePath()

2021-12-06 17:20:46 1834

原创 flutter async await 判断当前页面是否销毁

///在我们flutter 开发中 经常在异步调用 setState///那么如何判断当前widget是否销毁呢 if (mounted) { ///判断当前页面是否已经销毁 setState(() { ///页面更新的数据 }); }

2021-11-03 11:16:52 1205

原创 iOS 获取私有属性 超级实用

下面展示一些 内联代码片。获取某个私有属性/**获取*self.phone 已经初始化好的对象*私有属性名称*object_getIvar 通过内存地址 获取属性 */ Ivar ivar = class_getInstanceVariable([self.phone class], "_placeholderLabel"); UILabel *placehoderLabel = object_getIvar(self.phone,ivar);/*** 多层次获取 某个

2021-10-22 14:12:37 944 7

原创 iOS 网络权限弹框处理

下面展示一些 内联代码片// An highlighted block#import <CoreTelephony/CTCellularData.h>#pragma mark - Network auth status- (void)networkAuthStatus { CTCellularData *cellularData = [[CTCellularData alloc]init]; cellularData.cellularDataRestrictionDi

2021-08-26 14:42:54 3766 2

原创 iOS 监听导航backitm 点击事件

下面展示一些 内联代码片。// 声明代理方法@protocol JYBackButtonHandlerProtocol <NSObject> @optional /** 重写下面的方法以拦截导航栏返回按钮点击事件 */-(void)navigationShouldPopBackButton; @end// A code block@interface UIViewController (JY)<JYBackButtonHandlerProtocol>//判

2021-04-26 14:24:37 432

原创 iOS 格林威治 时间转换 NSString扩展

#import <Foundation/Foundation.h>@interface NSString (Adapter)- (BOOL) isEmpty;//截取两个字符串中间的内容- (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString;//手机号验证- (BOOL)valiMobile;//身份证号验证-(BOOL)checkIsPeo

2021-03-26 16:02:54 213

原创 iOS强制关闭暗黑模式

发现之前很多人说的在info.plist文件中添加key:User Interface Style,值类型是String,值为Light,重新运行项目即可;上面我试了发现不管用。后来找到了如下方法,亲测管用,记录一下在plist里加入如下代码<key>UIUserInterfaceStyle</key><string>UIUserInterfaceStyleLight</string>...

2021-03-24 08:58:04 1003

link.html

link.html

2022-09-05

空空如也

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

TA关注的人

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