iOS
huangruiz1
这个作者很懒,什么都没留下…
展开
-
【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 · 901 阅读 · 0 评论 -
【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 · 294 阅读 · 0 评论 -
【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 · 661 阅读 · 0 评论 -
【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 · 714 阅读 · 2 评论 -
【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 · 678 阅读 · 0 评论 -
【iOS】远程推送(Remote Notification)功能开发
Github原创 2020-10-19 10:14:24 · 369 阅读 · 0 评论 -
【iOS】处理照片方向不正确的问题
假如的你照片上传到服务器后,在服务器端查看发现,逆时针旋转了90。可能是因为没有处理 imageOrientation 这个参数在工程中加入 UIImage Category 处理一下即可- (UIImage *)normalizedImage{ if (self.imageOrientation == UIImageOrientationUp) { return self; } UIGraphicsBeginImageContextWithOptio原创 2020-10-19 09:55:33 · 398 阅读 · 0 评论 -
【iOS】如何查看ipa中包含设备的UUID
1.首先找到对应的包,把.ipa包改名.zip解压缩;2.右击查看包里的内容,找到名字为:embedded.mobileprovision证书文件;3.打开电脑终端,进入原来embedded.mobileprovision的目录,然后运行命令行:security cms -D -i embedded.mobileprovision...原创 2020-10-19 09:54:42 · 872 阅读 · 0 评论