概览

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

本文主要关注的就是字符串的上面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 *` */

阅读更多

目标

  • shell脚本自动生成应用的图标

前提

  • .png格式的图片进行缩小操作不会失真
  • 应用的图标尺寸是可预先确定

阅读更多

场景

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

阅读更多

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×