自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【iOS】高斯模糊

UIImageView *bgImg = [[UIImageView alloc]initWithFrame:CGRectMake(0, 20, SCREEN_WIDTH, 187)];bgImg.image = [UIImage imageNamed:@"启动图标最终版"];bgImg.contentMode = UIViewContentModeScaleAspectFill;bgImg.clipsToBounds = YES;[self.view addSubview:bgImg];UIBl

2020-10-19 10:20:01 965

原创 【iOS】关于 UICollectionView 的自定义布局

闲来没事,做了个 UICollectionView 的圆形布局,效果图如下#控制器代码如下//// ViewController.m// CollectionViewTest//// Created by 黄瑞 on 2017/5/24.// Copyright © 2017年 CoderHuang. All rights reserved.//#import "ViewController.h"#import "MyLayout.h"#import "MyCollecti

2020-10-19 10:19:32 350

原创 【iOS】UIImageView显示放大后的图片时模糊的问题

想放大后不进行模糊处理的话,需要更改一个属性 UIImageView *imageView = [[UIImageView alloc] init]; CALayer *layer = imageView.layer; layer.magnificationFilter = @"nearest";文档中对 magnificationFilter 属性的解释如下其中typedef NSString * CALayerContentsFilter NS_STRING_ENU..

2020-10-19 10:18:38 771

原创 【iOS】一个简单的人脸跟踪Demo

1、sessionView - 相机画面的容器Viewself.detector - 脸部特征识别器- (void)viewDidLoad { [super viewDidLoad]; self.sessionView = [[UIView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:self.sessionView]; self.faceView = [[UIImage

2020-10-19 10:17:55 777 2

原创 【数据结构】【iOS】二叉树的遍历

二叉树的遍历方式有三种1、前序遍历NLR(Preorder Traversal,先序遍历2、中序遍历LNR(Inorder Traversal)3、后序遍历LRN(Postorder Traversal)代码Swiftclass TreeNode { var val: Int var left: TreeNode? var right: TreeNode? init(_ val: Int) { self.val = val self

2020-10-19 10:17:08 660

原创 【iOS】当我们在application:DidFinishLaunchWithOptions:中返回NO时会发生什么

先给出官方文档解释The return result from this application:didFinishLaunchingWithOptions: is combined with the return result from the application:willFinishLaunchingWithOptions: method to determine if a URL should be handled. If either method returns NO, the URL is

2020-10-19 10:16:01 763

原创 【iOS】远程推送(Remote Notification)功能开发

Github

2020-10-19 10:14:24 454

原创 【iOS】处理照片方向不正确的问题

假如的你照片上传到服务器后,在服务器端查看发现,逆时针旋转了90。可能是因为没有处理 imageOrientation 这个参数在工程中加入 UIImage Category 处理一下即可- (UIImage *)normalizedImage{ if (self.imageOrientation == UIImageOrientationUp) { return self; } UIGraphicsBeginImageContextWithOptio

2020-10-19 09:55:33 502

原创 【iOS】如何查看ipa中包含设备的UUID

1.首先找到对应的包,把.ipa包改名.zip解压缩;2.右击查看包里的内容,找到名字为:embedded.mobileprovision证书文件;3.打开电脑终端,进入原来embedded.mobileprovision的目录,然后运行命令行:security cms -D -i embedded.mobileprovision...

2020-10-19 09:54:42 1090

原创 【iOS】Sign in with Apple

【环境】Xcode 12.0.1,macOS 10.15.7一、ViewController 代码1、创建一个新工程,取名为 SignInWithApple,设置为自动签名2、为其添加 Sign in with Apple Capability3、打开 ViewController.h,导入#import <AuthenticationServices/AuthenticationServices.h>4、先创建一个 UIButton,或者使用 AuthenticationServ

2020-10-19 09:54:13 549

空空如也

空空如也

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

TA关注的人

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