02 2019 档案
整理面试问题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 /*
阅读全文
linux 命令失效
摘要:失效的原因 是我在执行命令的时候输入错误了。在网上找了很多的办法都是以下两种方式: 其一:直接在linux命令行界面输入如下,然后回车(导入环境变量,以及shell常见的命令的存放地址): export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/
阅读全文
有么有人跟我遇到同样的问题。。求解
摘要:运行的这一句的时候 $ brew install --HEAD libimobiledevice checking how to hardcode library paths into programs... immediate ./configure: line 16050: syntax err
阅读全文
初见 fultter for MAC
摘要:第一步:下载flutter https://flutter.io/docs/development/tools/sdk/archive?tab=macos#macos 第二步:(development 本公举自己的文件夹) cd ~/development $ unzip /Users/yangqi
阅读全文
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,
阅读全文