自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 iOS模拟器 Charles抓包

上面这个吊东西不好用了。 *** 要在模拟器上手动安装证书才可以***

2021-09-02 11:49:58 930

原创 隐藏/删除UITableView的最后一个分割线

tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, _goodsDetailTableView.frame.size.width, 0.01)]; 设置一个footerView 0.01就直接冲掉最后一个分割线了 参考: https://stackoverflow.com/questions/12168002/how-to-remove-the-last-border-of-the-last-cel.

2021-04-25 14:32:17 505

原创 iOS升级后,xcode版本不匹配高版本真机调试(Xcode unsupported iOS version...)

参考:https://blog.youkuaiyun.com/YanceChen2013/article/details/67636498?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baidujs&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baiduj

2021-02-19 10:49:28 7669

原创 copy和strong

copy的对象不会跟着可变对象改变,地址不一样 strong会改变,地址一样 参考:https://blog.youkuaiyun.com/huangfei711/article/details/78297894

2021-02-05 16:21:50 180

原创 xcode报错:multiple commands produce &Code Signing “No account for team” &failed to register bundle

1. multiple commands produce 'xxxx' 1)target 'xx' has copy... 2)taget 'xx' has process command with... 删除之前的info.plist 参考:https://www.jianshu.com/p/fdb1421f3c8b 2.真机部署错误 1. no account for team 'yyy' .Add a new account in ... no profile for 'yyy' .

2020-12-23 19:37:54 972

原创 gem install 问题 (not found ruby/config.h 和You don‘t have write permissions into the /usr/bin/directo)

not found ruby/config.h 和You don't have write permissions into the /usr/bin/directory macOS Catalina 15.6 + ruby 2.6.3p62 (2019-04-16 revision 67580) 现在运行成功了,log找不到了。 大概是在运行sudo gem install xxx的时候 第一个问题报的是 什么extension问题,然后打开指定路径的log (mkmf.log) 会发现里面有句

2020-12-18 13:19:31 1046

原创 git有点懂了

之前不懂什么是远程分支&本地分支、什么又是远程仓库&本地仓库,所以感觉理解git很迷糊。 现在理解就是远程仓库就是存在云(或者服务器)上的那个仓库(repo),它会有个地址,可能就是origin 然后我clone从origin,把这个远程仓库下载下来,就是copy了一个本地仓库,copy下来的时候和远程仓库(repo)完全一样。 (一共就两个仓库,远程仓库就是所有人都能clone的,一个是本地仓库,就是clone到本地的,分支到是有很多) 所以这个时候用git branch -a查看

2020-12-10 16:24:05 241 1

原创 int/float/double 与NSString 转换

数据类型转string float f = xxx; NSString strF = [NSString stringWithFormat:@"%f", f]; //int和double一样, %d和%f string转数据类型 NSString @strF = xxx; int f = [strF floatValue]; // intValue, doubleValue

2020-09-16 11:25:45 204

原创 xcode开发的iOS项目配置ignore文件

1. 进入文件夹 2. 创建 文件 vim .gitignore 3. 这个里面有忽略的文件类型,直接copy粘贴就可以 https://github.com/github/gitignore/blob/master/Objective-C.gitignore

2020-09-11 15:26:01 1329

原创 退出键盘

[textView resignFirstResponder]

2020-09-11 09:56:27 179

转载 layoutSubviews

-(void) layoutSubviews{ [super layoutSubviews]; // 这个是要写,文档里写的 // 获取当前控件的尺寸 CGFloat width = self.frame.size.width; CGFloat height = self.frame.size.height; // 设置子控件的frame self.iconView.frame = CGRectMake(0, 0, width, width); .

2020-09-09 14:31:30 221

原创 什么叫谁调用self,self就代表谁

@implementation A -(void) objMethod1{ [self objMethod2]; // 1. self在对象方法中 } -(void) objMethod2{ ... } +(void) clzMethod1{ [self clzMethod2] // 2. self在类方法中 } +(void) clzMethod2{ ... A a1, a2 = ... [a1 objMethod1]; .

2020-09-08 19:35:26 280

转载 NSLog输出各种类型

原地址:https://www.cnblogs.com/mukekeheart/p/11280604.html %d : 十进制整数, 正数无符号, 负数有 “-” 符号; %o : 八进制无符号整数, 没有 0 前缀; %x : 十六进制无符号整数, 没有 0x 前缀; %u : 十进制无符号整数; %hd : 短整型 %ld , %lld : 长整型 %zd : 有符号 NSInteger型专用输出,在iOS开发中应牢记。 %tu : 无符号NSUInteger的输出 %lu.

2020-09-08 19:14:42 299

原创 分类(category) 和类扩展()

1. 分类只能给原有类添加方法,不允许添加变量 2. 分类中@property只会生成getter和setter方法声明 ,不会生成私有成员和方法实现 3. 分类中可以访问原有类.h中的属性 4. 分类如果和原有类有同名方法, 会调用分类方法,忽略(覆盖)原有类方法,尽量不要这样写 5. 多个分类都有同一个方法,最后一个编译的被执行 ...

2020-09-08 17:26:34 218

原创 self.xxx和_xxx

(1)用@property修饰的属性(例如name), 自动有了getter和setter方法, 当重写其中之一的时候,会自动生成一个_name变量。 (2)重写其中一个方法的时候(例如getter方法),使用 if(self.name == nil)这种判断语句,self.name默认调用getter方法,这个时候就会循环调用getter方法了,每次到判断的地方 就会调用这个正在重写的name方法。所以如果想作判断用_name == nil就不会循环调用getter方法了。如果不是判断语句是赋值或者返.

2020-09-07 20:29:17 6606

空空如也

空空如也

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

TA关注的人

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