自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 iOS flutter 混编 tabBar 隐藏flutter 界面出现黑边

记录 问题 问题描述, 在UITabBarController 中加一个 flutter 界面, flutter 界面跳转到二级页面,隐藏tabbar tabbar 位置出现黑色底边,flutter 页面不能全屏。 解决方法 : 自己的 controller 继承FlutterViewController 重写viewDidAppear方法 找到self.view 上的子控件,重设frame - (void)viewDidAppear:(BOOL)animated{ [s...

2020-06-15 20:57:40 1398

原创 UIWebView 跳过HTTPS证书认证

报错 NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9860) NSURLConnection finished with error - code -1200 解决方法: @interface NSURLRequest (CTSSLRequest) +(BOOL)allowsAnyHTT...

2019-01-24 15:07:31 610

原创 iOS Facebook 分享

以分享链接为例  调用原生app分享,如果没有原生app则调用web界面分享  FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];     content.contentURL = [NSURL URLWithString:ShareURL];     content.quote = NSLocaliz...

2018-12-12 16:17:28 4482

原创 iOS 子视图跟随父试图改变

//view1父视图  view1.autoresizesSubviews =YES; //view2子视图     view2.autoresizingMask =     UIViewAutoresizingFlexibleLeftMargin   |     UIViewAutoresizingFlexibleWidth        |     UIViewAutoresizi...

2018-11-06 12:39:16 2393 1

原创 在一个xib 中调用另外一个xib

重复使用的控件类 .h 文件 @property (strong, nonatomic) UIView *view; @property (copy, nonatomic) NSString *title;   .m 文件 #import "SFStatusSelectVIew.h"   @implementation SFStatusSelectVIew   - (insta...

2018-08-09 17:15:51 1971 2

原创 iOS html 格式数据加载

NSMutableAttributedString * attrStr = [[NSMutableAttributedString alloc] initWithData:[htmlstring dataUsingEncoding: NSUnicodeStringEncoding] options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocume...

2018-08-08 15:46:15 831

原创 iOS 搜索项目中的所有汉字

搜索: Command+Shift+F,进入全局搜索引擎,切换为Replace模式,并把匹配模式改为Regular Expression。 oc 输入 @"[^"]*[\u4E00-\u9FA5]+[^"\n]*?" 搜索 Swift 去掉@即可 替换: 在搜索条件里输入(@"[^"]*[\u4E00-\u9FA5]+[^"\n]*?"), 在下面替换内容里输入NSLocalizedS...

2018-08-03 15:11:06 1314

原创 iOS 原生网络请求

get: {     //1.确定请求路径     NSURL *url = [NSURL URLWithString:url_str];          //2.创建请求对象     //请求对象内部默认已经包含了请求头和请求方法(GET)     NSURLRequest *request = [NSURLRequest requestWithURL:url];      ...

2018-07-27 09:43:03 4449

转载 iOS 倒计时 三种方式

#define TIMECOUNT 60@interface ViewController ()@property (strong, nonatomic) IBOutlet UIButton *firstBtn;@property (strong, nonatomic) IBOutlet UIButton *secondBtn;@property (strong, nonatomic) IBOut...

2018-06-07 18:29:22 2963

原创 iOS 一级界面左滑返回导致app卡顿 黑屏

在一级界面增加一下代码:   @property (nonatomic, assign)BOOL isCanUseSideBack;  // 手势是否启动 遵循 UIGestureRecognizerDelegate 协议   - (void)viewDidAppear:(BOOL)animated{     [super viewDidAppear:animated];     [...

2018-06-07 18:01:26 1633

原创 iOS 多线程 设定执行顺序

////  ViewController.m//  GCDDownload////  Created by ql on 2018/4/4.//  Copyright © 2018年 carystaloptech. All rights reserved.//#import "ViewController.h"@interface ViewController ()@end@implementati...

2018-04-04 16:56:13 3812

原创 AF断点下载和计算下载速度

AFHTTPRequestOperation *operation;//成员变量 - (void)startDownload {     DownTask *downTask = [[DownTask alloc]init];     downTask.date = [NSDate date];     NSString *strURL = [self.di

2017-01-10 15:11:12 443

原创 自定义navigationcontroller返回动画

自定义navigationcontroller 返回动画     CATransition *transition = [CATransition animation];     transition.duration = 0.5f;     transition.timingFunction = [CAMediaTimingFunction functionWith

2017-01-10 14:50:16 435

空空如也

空空如也

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

TA关注的人

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