【文件属性】:
文件名称:baidu-translate-ios-sdk:百度翻译 iOS SDK (非官方)
文件大小:23KB
文件格式:ZIP
更新时间:2021-07-03 02:48:36
Objective-C
说明
非官方 iOS SDK.
Credits
截图
使用
使用 Cocoapod 安装:
pod 'BaiduTranslate', :git => "https://github.com/summerblue/baidu-translate-ios-sdk.git"
使用
#warning 这里填写百度 API 的 KEY
[BaiduTranslate setupBaiduClientKey:@"REPLACE ME WITH KEY"];
BTResultBlock callback = ^(TranslationEntity *translation, NSError *error) {
if (!error)
{
if (translation)
{
【文件预览】:
baidu-translate-ios-sdk-master
----.gitignore(3KB)
----BaiduTranslateExampleTests()
--------BaiduTranslateExampleTests.m(916B)
--------Info.plist(746B)
----LICENSE(1KB)
----BaiduTranslateExample.xcworkspace()
--------contents.xcworkspacedata(239B)
----BaiduTranslate()
--------TranslationEntity.m(1KB)
--------BaiduTranslate.m(2KB)
--------BaiduTranslate.h(701B)
--------TranslationEntity.h(477B)
----BaiduTranslateExample()
--------main.m(349B)
--------ViewController.m(1KB)
--------AppDelegate.h(292B)
--------Info.plist(1KB)
--------Images.xcassets()
--------AppDelegate.m(2KB)
--------ViewController.h(230B)
--------Base.lproj()
----BaiduTranslate.podspec(1KB)
----BaiduTranslateExample.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(27KB)
----readme.md(1KB)
----Podfile.lock(1KB)
----Podfile(167B)