phizclip-ios-demo/README.md

91 lines
4.2 KiB
Objective-C
Raw Normal View History

2021-09-22 16:37:23 +08:00
<p align="center">
<a href="https://www.finclip.com?from=github">
<img width="auto" src="https://www.finclip.com/mop/document/images/logo.png">
</a>
</p>
2020-03-15 19:18:44 +08:00
2021-09-22 16:37:23 +08:00
<p align="center">
<strong>FinClip iOS DEMO</strong></br>
<p>
<p align="center">
iOS DEMO
<p>
2020-03-15 19:18:44 +08:00
2021-09-22 16:37:23 +08:00
<p align="center">
👉 <a href="https://www.finclip.com?from=github">https://www.finclip.com/</a> 👈
</p>
2020-03-15 19:18:44 +08:00
2021-09-22 16:37:23 +08:00
-----
## 🤔 FinClip 是什么?
2021-02-05 15:20:26 +08:00
2021-09-22 16:37:23 +08:00
**** APP
2021-02-05 15:20:26 +08:00
2021-09-22 16:37:23 +08:00
**** APP SDK
2021-02-05 15:20:26 +08:00
2021-09-22 16:37:23 +08:00
FinClip
2021-02-05 15:20:26 +08:00
2021-09-22 16:37:23 +08:00
## ⚙️ 操作步骤
### 第一步 修改 Podfile 文件,增加 FinApplet 依赖
```pod
2020-03-15 19:18:44 +08:00
source 'https://github.com/CocoaPods/Specs.git'
pod 'FinApplet'
```
2021-09-22 16:37:23 +08:00
### 第二步 五行代码完成SDK初始化
`AppDelegate` SDK
```objc
2020-03-15 19:18:44 +08:00
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *appKey = @"SDKKEY";
FATConfig *config = [FATConfig configWithAppSecret:@"SECRET" appKey:appKey];
2021-02-05 15:20:26 +08:00
config.apiServer = @"https://api.finclip.com";
2020-03-15 19:18:44 +08:00
config.apiPrefix = @"/api/v1/mop";
[[FATClient sharedClient] initWithConfig:config error:nil];
return YES;
}
```
2021-09-22 16:37:23 +08:00
### 第三步打开小程序
```objc
2020-03-15 19:18:44 +08:00
NSString *appId = @"小程序id";
// 打开小程序
[[FATClient sharedClient] startRemoteApplet:appId startParams:nil InParentViewController:self completion:^(BOOL result, NSError *error) {
NSLog(@"result:%d---error:%@", result, error);
}];
```
2021-09-22 16:37:23 +08:00
- **SDK KEY** **SDK SECRET** [FinClip](https://finclip.com/#/home) 获取,点 [这里](https://finclip.com/#/register) 注册账号;
- key\secret\apisever
- **apiServer** **apiPrefix** DEMO
- ** ID** APP ID
> ID ID FinClip ID
## 📋 集成文档
[](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html#_1-ios-%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90) 查看 iOS 快速集成文档
## 🔗 常用链接
FinClip
- [FinClip ](https://www.finclip.com/#/home)
- [](https://www.finclip.com/#/market)
- [](https://www.finclip.com/mop/document/)
- [SDK ](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html)
- [](https://www.finclip.com/mop/document/develop/guide/structure.html)
- [iOS ](https://www.finclip.com/mop/document/runtime-sdk/ios/ios-integrate.html)
- [Android ](https://www.finclip.com/mop/document/runtime-sdk/android/android-integrate.html)
- [Flutter ](https://www.finclip.com/mop/document/runtime-sdk/flutter/flutter-integrate.html)
## ☎️ 联系我们
****<br>
<img width="150px" src="https://www.finclip.com/mop/document/images/ic_qr.svg">
finclip <br>
<img width="150px" src="https://finclip-homeweb-1251849568.cos.ap-guangzhou.myqcloud.com/images/ldy111.jpg">
## Stargazers
[![Stargazers repo roster for @finogeeks/finclip-ios-demo](https://reporoster.com/stars/finogeeks/finclip-ios-demo)](https://github.com/finogeeks/finclip-ios-demo/stargazers)
## Forkers
[![Forkers repo roster for @finogeeks/finclip-ios-demo](https://reporoster.com/forks/finogeeks/finclip-ios-demo)](https://github.com/finogeeks/finclip-ios-demo/network/members)