随笔分类 - OC
1
IOS 15 自定义导航栏图片显示问题的解决
摘要:导航栏为图片的时候,进入是白色的,需要往上滑一点才能出现 OC UIImage *bgImage = [[UIImage imageNamed:@"nav_other"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0) resizin
阅读全文
iOS 手机上出现黄色强密码并且不能输入问题
摘要:使用UITextField的时候并且使用了secureTextEntry属性,界面上就出现了黄色强密码框的提示,并且怎么也输不了密码。 我开始以为是因为我使用了storyboard的原因。我就直接在去将storyboard 的取消 用代码的形式编辑 再运行就可以了, 但是奇怪的是我想重现并且截图的时
阅读全文
Xcode 升级到 11.2 创建工程是多了一个 SceneDelegate 问题
摘要:两种方式解决 第一种. 在info plist 删除 Application Scene Manifest 同时 删除 SceneDelegate 类 在APPdelegate 删除相关scene 的协议 第二种 就是 在SceneDelegate 类里添加 @available(iOS 13,*)
阅读全文
按首字母分组排序数组
摘要:1 2 3 // 按首字母分组排序数组 4 5 -(NSMutableArray *)sortObjectsAccordingToInitialWith:(NSArray *)arr { 6 7 8 9 // 初始化UILocalizedIndexedCollation 10 11 UILocalizedIndexedCollation *collation = [UILocalizedIndex
阅读全文
swift - CALayer
摘要:1 // 2 // ViewController.swift 3 // CAlayerTest 4 // 5 // Created by 杨琴 on 2019/8/13. 6 // Copyright © 2019 AYQ. All rights reserved. 7 // 8 9 import UIKit 10 import QuartzCor...
阅读全文
Guideline 2.5.1 - Performance - Software Requirements 被拒
摘要:Guideline 2.5.1 - Performance - Software Requirements We noticed that your app uses HealthKit, but your app does not appear to include any primary fea
阅读全文
每次更新APP 最怕的就是系统升级xcode升级 出现的各种奇葩问题
摘要:Dear Developer, We identified one or more issues with a recent delivery for your app, "***". Please correct the following issues, then upload again. I
阅读全文
苹果官网整理
摘要:1. 修改资料 https://appleid.apple.com/account/manage 2.证书管理 https://developer.apple.com/account/ios/profile/limited/edit/7B263KL536 3.appstoreconnect http
阅读全文
Podfile
摘要:platform :ios, "9.0" target "APPName" dopod 'AFNetworking'pod 'SVProgressHUD'pod 'YYModel'pod 'IQKeyboardManager'pod 'ZFPlayer'pod 'MJRefresh'end pod
阅读全文
Mac 10.13.6 安装 cocoapods
摘要:卸载pod sudo rm -fr ~/Library/Caches/CocoaPods/ sudo rm -fr ~/.cocoapods/repos/master/ sudo rm -fr Pods/ 安装pod gem install -n /usr/local/bin cocoapods p
阅读全文
Xcode 添加pch 文件
摘要:搜索prefix 找到 APPle Clang Language > 将precompile Prefix Header 改为YES > 再输入$(SRCROOOT)/Other/项目名.pch (这里根据自己的文件地址来)
阅读全文
UITableviewCell 高度自适应
摘要:self.deviceTable.estimatedRowHeight=44; self.deviceTable.rowHeight=UITableViewAutomaticDimension; -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPa...
阅读全文
整理面试问题iOS
摘要:1.如何添加手势操作。 我们以在view上来举例 2.app性能的测试方法有哪些。 Xcode --> Open Developer Tool -->Instrumnets 2.测试fps 值 这个我们做列表刷新的时候就会经常用这个来测试 CADisplayLink 3.说一个你独立开发的项目中你遇
阅读全文
自定义textview
摘要:#import <UIKit/UIKit.h> @class FSTextView; typedef void(^FSTextViewHandler)(FSTextView *textView); IB_DESIGNABLE @interface FSTextView : UITextView /*
阅读全文
AFN 二次封装
摘要:#import "YQDataManager.h" #import <YYModel/YYModel.h> #pragma mark - 数据model基类 @implementation YQListBaseModel + (NSDictionary *)modelCustomPropertyMa
阅读全文
常用的时间转换
摘要:#pragma mark - 将某个时间戳转化成 时间 +(NSString *)timestampSwitchTime:(NSString *)timestamp andFormatter:(NSString *)format{ NSDateFormatter *formatter = [[NSD
阅读全文
常用的宏定义
摘要:// screen #define kWidth [UIScreen mainScreen].bounds.size.width #define kHeight [UIScreen mainScreen].bounds.size.height #define kWindow [UIApplicati
阅读全文
ios开发常用封装的实用方法
摘要:#pragma mark 获取设备id + (NSString *)getDeviceId { NSString *identifierForVendor = [[UIDevice currentDevice].identifierForVendor UUIDString]; return iden
阅读全文
iOS常用的代码块整理
摘要:strong @property (nonatomic,strong) <#Class#> *<#object#>; weak @property (nonatomic,weak) <#Class#> *<#object#>; copy @property (nonatomic,copy) NSSt
阅读全文
Xcode 添加代码块
摘要:1.在Xcode 10 以后我们的代码块从右下角,跑到了右上角了(如图所示) 2.添加代码块的方式也不用像原来拖拽的方式了: 选中需要添加的代码块,右键 --> Create Code Snippet(如图所示) 自定义代码块 我们以 strong 来举例 @property (nonatomic,
阅读全文
1