Skip to content

Commit a5d77ec

Browse files
committed
Modify Content
1 parent 1542c31 commit a5d77ec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
# 重温FunctionalReactivePixels
2+
3+
在我们继续研究使用MVVM来重构我们的`FunctionalReactivePixels`Demo之前,我们需要做一些准备工作。他们的登陆系统不支持我们使用500px_iOS_SDK的方式。
4+
5+
我们将从AppDelegate的头文件中移除`apiHelper`属性,并用下面的代码替换实现文件里执行初始化的那行代码,填上你的消费者Key和Secret.
6+
7+
```Objective-C
8+
[PXRequest setConsumerKey:consumerKey consumerSecret:consumerSecret];
9+
```
10+
11+
现在,任何调用`AppDelegate.apiHelper`来创建500px_API请求的地方,全部必须替换为`[PXRequest apiHelper]`.
12+
13+
最后,请更新你的CocoaPods文件中500px_iOS_SDK的版本号到`1.0.5`

0 commit comments

Comments
 (0)