Skip to content

Commit 842c8e8

Browse files
committed
update
1 parent 6c1258f commit 842c8e8

24 files changed

Lines changed: 694 additions & 2 deletions
141 KB
Loading
8.16 KB
Binary file not shown.

iOS/2021CD/QQ20210411-211422.png

88.6 KB
Loading

iOS/2021CD/iOS上架什么的.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# 1. 图片 下面的尺寸
2+
![QQ20210411-211422](QQ20210411-211422.png)
3+
4+
```c
5+
6+
5.5
7+
1242*2208
8+
9+
10+
6.5
11+
1242*2688
12+
13+
```
14+
15+
16+
# 2. 技术支持网址 (URL)
17+
18+
19+
20+
21+
# 3. 描述--本次版本有哪些东西å
22+
23+
```
24+
25+
对您 App 的描述,用以详细说明特性和功能。
26+
27+
```
28+
29+
30+
# 4. 宣传文本--暂时可以不要
31+
32+
```c
33+
34+
宣传文本可使您在无需提交更新请求的情况下,通知 App Store 访客当前最新的 App 功能。如果客户的设备运行 iOS 11 或更高版本,以及 macOS 10.13 或更高版本,那么在 App Store 中,宣传文本会显示在您的 App 描述上方。
35+
36+
```
37+
38+
Binary file not shown.

iOS/20常用代码.md

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 目录
2+
1. [去掉空格](#1)
3+
2. [查看UIWebView](#2)
4+
3. [UITextField 编辑](#3)
5+
4. [4. 按钮文字居中](#4)
6+
5. [5. 按某个字符切割](#5)
7+
8+
9+
10+
11+
# 1
112
# 去掉空格
213

314
```objc
@@ -7,7 +18,7 @@
718
```
819
920
10-
21+
# 2
1122
# 查看UIWebView
1223
1324
```objc
@@ -16,7 +27,7 @@ grep -r UIWebView .
1627
1728
```
1829

19-
30+
# 3
2031
# UITextField 编辑
2132

2233
```objc
@@ -61,4 +72,67 @@ grep -r UIWebView .
6172

6273
}
6374

75+
```
76+
77+
# 4
78+
# 4. 按钮文字居中
79+
80+
```objc
81+
82+
btnSelect.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight
83+
84+
```
85+
86+
87+
# 5
88+
# 5. 按某个字符切割
89+
90+
91+
```objc
92+
93+
NSString *str =@"Rem【ar【k";
94+
95+
NSArray *array = [str componentsSeparatedByString:@"【"]; //字符串按照【分隔成数组
96+
97+
NSLog(@"array=%@=",array);
98+
99+
100+
```
101+
102+
103+
# 6
104+
# 6. 根据元素返回序号
105+
106+
```objc
107+
108+
NSInteger index = [arr indexOfObject:str];
109+
110+
```
111+
112+
113+
114+
# 7
115+
# 7.
116+
117+
```objc
118+
119+
120+
```
121+
122+
123+
# 7
124+
# 7.
125+
126+
```objc
127+
128+
129+
```
130+
131+
132+
# 7
133+
# 7.
134+
135+
```objc
136+
137+
64138
```
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
# 0. 总览
3+
4+
yuv->h264->mp4
5+
pcm->aac->mp3
6+
7+
# 1. h264
8+
9+
1. 它是视频的编码格式的一种
10+
2. 包括: 关键帧(I帧), 非关键帧(B,P), sps, pps
11+
12+
![21mianshi05](images/21mianshi05.png)
13+
14+
## 1.1 sps
15+
16+
17+
## 1.2 pps
18+
19+
## 1.3 NAL 网络抽象成, 把一帧大的数据拆成下的数据再网络中传输,拆包
20+
21+
## 1.4 NALU = NAL Header(1B) + 00 00 00 01
22+
23+
I帧, B帧, P帧 他们是有多个片组成
24+
25+
![21mianshi06](images/21mianshi06.png)
26+
27+
# 2. aac
28+
29+
30+
# 3. video Toolbox 工作流程
31+
32+
C语言的, 基于core Foundation
33+
34+
iOS8.0-->
35+
36+
1. 创建Session -> 设置编码相关参数 -> 开始编码 -> 循环输入源数据(yuv类型的数据, 摄像头提供 ) -> 获取编码后的h264流数据 -> 结束编码
37+
38+
只是获得h264流数据 , 但是不构成h264 文件, 从 `CMSampleBuffer``CMBlockBufferRef`里面装的是h264流数据,
39+
40+
`CVPixelBufferRef`用于解码
41+
42+
43+
`CMSampleBuffer`是h264流数据, 我们要将h264流变成h264 文件文件数据, 我们会给这个数据加个头, 加起始位00 00 00 01加一个pps或者sps的头
44+
45+
5--是I帧
46+
7--序列参数集
47+
8--图像参数集
48+
49+
# 4. 序列参数集sps----7
50+
51+
# 5. 图像参数集pps---8

0 commit comments

Comments
 (0)