phizclip-ios-demo/README.md

92 lines
5.8 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# iOS工程 readme
<a name="ulvpb"></a>
## 🤩 FinClip是什么?
APP<br />App<br />App<br /><br />FinClip<br />
<a name="y9LBK"></a>
## 🤔 你要怎么做?<br />
1. get<br /><br />or [](https://mp.finogeeks.com/#/ecosystem) 中挑一个小程序(支持直接下载代码包)<br />or 直接使用我们提供的项目:[https://github.com/finogeeks/miniprogram-demo](https://github.com/finogeeks/miniprogram-demo)
1. finclip SDKAPP
1. [FinClip](https://finclip.com/#/home),完成关联
App<br />
<a name="TaX3b"></a>
## 🔜 五行代码让你的App运行小程序
<a name="Te1LR"></a>
### 1、 修改Podfile文件增加FinApplet依赖
```
source 'https://github.com/CocoaPods/Specs.git'
pod 'FinApplet'
```
<a name="axnzO"></a>
### 2、初始化 SDK 五行代码完成初始化
AppDelegate SDK
```
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *appKey = @"SDKKEY";
FATConfig *config = [FATConfig configWithAppSecret:@"SECRET" appKey:appKey];
config.apiServer = @"https://api.finclip.com";
config.apiPrefix = @"/api/v1/mop";
[[FATClient sharedClient] initWithConfig:config error:nil];
return YES;
}
```
<a name="zYJ7X"></a>
### 3、打开小程序
```
NSString *appId = @"小程序id";
// 打开小程序
[[FATClient sharedClient] startRemoteApplet:appId startParams:nil InParentViewController:self completion:^(BOOL result, NSError *error) {
NSLog(@"result:%d---error:%@", result, error);
}];
```
clone**sdk keyid**<br /> keysecretAppID <br />
<br /><br />
- **SDKKEY** **Secret** [ FinClip](https://finclip.com/#/home) 获取,你也可以直接点击进入[注册页面](https://finclip.com/#/register)
- key\secret\apisever<br />
- **apiServer** **apiPrefix** demo
- **id** AppID <br />IDfinclipID
<a name="GZU3P"></a>
## 📚 想要通关全程?这里是全程攻略
demo<br />App
<a name="Ri882"></a>
### 1、FinClip 平台是什么?
- Finclip<br />
- FinClip
- FinClip
<a name="sx7EX"></a>
### 2、FinClip 平台的特色?
- 线线宿线 APP
-
- 便 APP线
- H5 /
-
<a name="l5pz3"></a>
### 3、FinClip 有哪些典型案例?
<br />
![Yippi](media/image/image-1612508915946.jpeg)
<a name="l352x"></a>
## ⛳️ 获得更多指引
[https://www.finclip.com/mop/document/quickstart/Community-Edition.html](https://www.finclip.com/mop/document/quickstart/Community-Edition.html)<br />✅ 了解iOS相关API[https://www.finclip.com/mop/document/runtime-sdk/sdk-api/ios.html](https://www.finclip.com/mop/document/runtime-sdk/sdk-api/ios.html)<br />✅ 了解更多iOS常见问题[https://www.finclip.com/mop/document/faq/SDK/iOS-SDK.html](https://www.finclip.com/mop/document/faq/SDK/iOS-SDK.html)<br />
<a name="9K1zU"></a>
## ☎️ 与我们联系
FinClip使<br />
![](media/image/demo_readme2.png)
wxliudiyang1212