phizclip-ios-demo/README.md

184 lines
9.0 KiB
Objective-C
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden 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.

<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>
<p align="center">
<strong>FinClip iOS DEMO</strong></br>
<p>
<p align="center">
iOS DEMO
<p>
<p align="center">
👉 <a href="https://www.finclip.com?from=github">https://www.finclip.com/</a> 👈
</p>
<div align="center">
<a href="#"><img src="https://img.shields.io/badge/%E4%B8%93%E5%B1%9E%E5%BC%80%E5%8F%91%E8%80%85-20000%2B-brightgreen"></a>
<a href="#"><img src="https://img.shields.io/badge/%E5%B7%B2%E4%B8%8A%E6%9E%B6%E5%B0%8F%E7%A8%8B%E5%BA%8F-6000%2B-blue"></a>
<a href="#"><img src="https://img.shields.io/badge/%E5%B7%B2%E9%9B%86%E6%88%90%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8-75%2B-yellow"></a>
<a href="#"><img src="https://img.shields.io/badge/%E5%AE%9E%E9%99%85%E8%A6%86%E7%9B%96%E7%94%A8%E6%88%B7-2500%20%E4%B8%87%2B-orange"></a>
<a href="https://www.zhihu.com/org/finchat"><img src="https://img.shields.io/badge/FinClip--lightgrey?logo=zhihu&style=social"></a>
<a href="https://www.finclip.com/blog/"><img src="https://img.shields.io/badge/FinClip%20Blog--lightgrey?logo=ghost&style=social"></a>
</div>
<p align="center">
<div align="center">
[](https://www.finclip.com/) | [示例小程序](https://www.finclip.com/#/market) | [开发文档](https://www.finclip.com/mop/document/) | [部署指南](https://www.finclip.com/mop/document/introduce/quickStart/cloud-server-deployment-guide.html) | [SDK 集成指南](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html) | [API 列表](https://www.finclip.com/mop/document/develop/api/overview.html) | [组件列表](https://www.finclip.com/mop/document/develop/component/overview.html) | [隐私承诺](https://www.finclip.com/mop/document/operate/safety.html)
</div>
-----
## 🤔 FinClip 是什么?
**** APP
**** APP SDK
FinClip
## ⚙️ 操作步骤
### 第一步 修改 Podfile 文件,增加 FinApplet 依赖
```pod
source 'https://github.com/CocoaPods/Specs.git'
pod 'FinApplet'
```
### 第二步 完成SDK初始化
`AppDelegate` SDK
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// 需要添加至App中的代码--start
NSMutableArray *storeArrayM = [NSMutableArray array];
FATStoreConfig *storeConfig = [[FATStoreConfig alloc] init];
storeConfig.sdkKey = @"您的sdkKey信息";
storeConfig.sdkSecret = @"您的sdkSecret信息";
storeConfig.apiServer = @"服务器域名";
storeConfig.apmServer = @"apm统计事件的域名";
[storeArrayM addObject:storeConfig];
FATConfig *config = [FATConfig configWithStoreConfigs:storeArrayM];
[[FATClient sharedClient] initWithConfig:config error:nil];
// 需要添加至App中的代码--end
return YES;
}
```
### 第三步打开小程序
```objc
NSString *appId = @"小程序id";
// 打开小程序
[[FATClient sharedClient] startRemoteApplet:appId startParams:nil InParentViewController:self completion:^(BOOL result, NSError *error) {
NSLog(@"result:%d---error:%@", result, error);
}];
```
- **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 快速集成文档
## 📘 目录结构
```
.
LICENSE
Podfile SDK
README.md
demo
   AppDelegate.h
   AppDelegate.m
   Assets.xcassets
   Base.lproj
      LaunchScreen.storyboard
   Common
      FINCustomMenuModel.h
      FINCustomMenuModel.m
      FINDemoClientHelper.h SDK
      FINDemoClientHelper.m SDK
      FINExtensionHelper.h api
      FINExtensionHelper.m api
   Info.plist
   MainViewController.h
   MainViewController.m
   Scan
      Controller
         FCQRCodeScanViewController.h
         FCQRCodeScanViewController.m
      View
      FCQRScanView.h
      FCQRScanView.m
   demo.entitlements
   demo.plist demo
   finosprite.plist finosprite
   main.m
   servers.plist SDK
demo.xcodeproj
```
## 📋 Demo功能介绍
****
api`login`SDK
* SDKKeyuniversallink
* api`login``FINExtensionHelper` `login`
****
api`requestPayment`SDK
* SDKKeyuniversallink
* api`requestPayment``FINExtensionHelper` `requestPayment`
****
Map使Mapapi使MapDemo`FinAppletBDMap`SDK
使MapFinClip SDK`[FATBDMapComponent setBDMapAppKey:@"申请的key"];`
`AppDelegate``application:didFinishLaunchingWithOptions:`
****
使MapDemo`FinAppletGDMap`SDK
使MapFinClip SDK`[FATGDMapComponent setGDMapAppKey:@"申请的key"];`
`AppDelegate``application:didFinishLaunchingWithOptions:`
## 🔗 常用链接
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">
<br>
<img width="150px" src="https://www-cdn.finclip.com/images/qrcode/qrcode_shequn_text.png">
## 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)