Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
TimePack app id app secret
iOS 2.1 SDK
2.1.1 TimePack , --> -->iOS , iOS
2.1.2 TimePack-iOS-2.0.8.zip,
TimePack.framework
2.2 TimePack SDK
2.2.1 TimePack.framework , Destination
2.2.2 “Finish”, SDK , ( TimePackDemo )
2.2.3 SDK storyboard UI, bundle , , TimePack.frameworkAddr.plist, bpkapi.bundle, BPKVisual.storyboardcAddr.plist, bpkapi.bundle, BPKVisual.storyboardc, 添加到您的项目中
2.2.4 ”Finish”, ,
2.3 2.3.1 向Build Phases -> Link Binary With Libraries 中添加系统依赖库
2.3.2 SDK pod( target TimePackDemo) platform :ios, '7.0'
inhibit_all_warnings!
target 'TimePackDemo' do
pod 'Masonry' # SDK 0.6.4, ≥ 0.6.4
pod 'SDWebImage' # SDK 3.7.5, ≥ 3.7.5
pod 'UIViewController+KeyboardAnimation' # SDK 1.2, ≥ 1.2
pod 'FMDB' # SDK 2.6.2, ≥ 2.6.2
pod 'Qiniu', '~> 7.0.16' # SDK 7.0.16, ≥ 7.0.16 ≤ 7.0.18
pod 'DZNEmptyDataSet' # SDK 1.8, ≥ 1.8
end 2.3.3 pods , xcworkspace, (Build Settings)
-force_load $(SRCROOT)/{TimePack.framework }/TimePack.framework/TimePack , SDK UI, ,
$(inherited) cocoapods ,
2.3.4 iOS iOS 9, HTTP , : <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> iOS 10, TimePack , , : <key>NSPhotoLibraryUsageDescription</key> <string>TimePack , </string>
3.1 SDK
, , [BPKPrintManager start:@" AppID" appSecret:@"secret" userID:@" App id" fromController:self completionBlock:^(BOOL finished, LYAlbumOrder *payingOrder) { NSLog(@"%@ : id--%@; : %@", finished ? @" " : @" ", payingOrder.str_id, payingOrder.str_serial); }]; SDK modal
3.2
, , TimePack SDK UI modal app. : : TimePack , button , finished NO, payingOrder nil;
: ≥1 , , , finished YES, payingOrder non-nil
: , " " , finished YES, payingOrder non-nil
3.3
, LYAlbumOrder , str_serial( ), time( ), numberOfAlbums( ), summaryPrice( , ), deliveryFee( )
3.4
3.4.1 (1) SDK
(2) SDK
3.4.2 SDK ( ) , , TimePackDemo PaySupport , SDK :