👨🏻‍💻's 博客

慢品人间烟火色,闲观万事岁月长

0%

闲话

  尝试过几个支持markdown的编辑器,比如MacDown,Ulysses,还是觉得MWeb比较合我的心意,原来就知道MWeb有图床的功能,但是一直没有用,主要是因为觉得有些麻烦,MWeb支持Google photos(应该不会使用这个),imgur,七牛(这两个都要注册,我用sm.ms直接就OK了,感觉也挺方便的),说白了主要就是因为懒,不想自定义配置,当然也下过iPic这样的小工具,同样也未曾使用,因为我觉得当我配置好MWeb后自然也可以不用这样的工具。偶然从订阅的RSS中看到幕后-专访MWeb,决定治治自己的拖延症。   

阅读全文 »

概览

字符串如何遍历?
字符串如何操作(增删改)?
字符串如何比较?

本文主要关注的就是字符串的上面3点操作

环境说明

macOS Sierra 10.12.2
Xcode Version 8.2.1

阅读全文 »

概要

启动图的价值 ?
如何设置启动图 ?
常见的启动图形式 ?

启动图的价值

A launch screen appears instantly when your app starts up. The launch screen is quickly replaced with the first screen of your app, giving the impression that your app is fast and responsive. The launch screen isn’t an opportunity for artistic expression. It’s solely intended to enhance the perception of your app as quick to launch and immediately ready for use. Every app must supply a launch screen.

启动屏主要是为了优化用户体验的

在启动屏上显示文字或广告的行为在Apple的设计规范上并不提倡

阅读全文 »

前言

出于”折腾”的目的,在使用github+hexo搭建blog后,将原来*.io*的域名绑定为个人申请的域名

准备

  1. 域名
  2. DNS服务器
阅读全文 »

方法编码

概念

To assist the runtime system, the compiler encodes the return and argument types for each method in a character string and associates the string with the method selector.

为了辅助运行时系统,编译器对字符串中每个方法的返回和参数类型进行编码,并将字符串与方法选择器相关联

阅读全文 »

类的数据结构(runtime.h)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct objc_class {
Class isa OBJC_ISA_AVAILABILITY;

#if !__OBJC2__
Class super_class OBJC2_UNAVAILABLE;
const char *name OBJC2_UNAVAILABLE;
long version OBJC2_UNAVAILABLE;
long info OBJC2_UNAVAILABLE;
long instance_size OBJC2_UNAVAILABLE;
struct objc_ivar_list *ivars OBJC2_UNAVAILABLE;
struct objc_method_list **methodLists OBJC2_UNAVAILABLE;
struct objc_cache *cache OBJC2_UNAVAILABLE;
struct objc_protocol_list *protocols OBJC2_UNAVAILABLE;
#endif

} OBJC2_UNAVAILABLE;
/* Use `Class` instead of `struct objc_class *` */
阅读全文 »

场景

  当通过.ipa文件的Info.plist文件去获得应用的配置信息时,若通过视图方式去找到Info.plist文件,感觉略显麻烦,因此决定使用shell脚本来解决该问题

阅读全文 »