类图
2018-08-19 18:00:42 35 举报
类图是一种用于描述系统结构和组织的工具,它以图形化的方式展示了系统中的类、接口以及它们之间的关系。在类图中,每个类被表示为一个矩形,而类的属性和方法则以标签的形式附加在矩形上。类之间的关系可以通过箭头来表示,箭头的方向表示了关系的方向。例如,单向关联可以用一个带箭头的实线表示,双向关联可以用一条带双向箭头的实线表示。类图还可以展示类的继承关系,子类通常位于父类的下方,并用一条带有空心箭头的实线连接到父类。通过类图,我们可以清晰地了解系统的组成部分以及它们之间的交互方式,从而更好地设计和实现系统。
作者其他创作
大纲/内容
SKPaymentTransaction
NSError *errorSKPaymentTransaction *originalTransactionSKPayment *paymentNSArray *downloads //iOS6NSDate *transactionDateNSString *transactionIdentifierNSData *transactionReceiptSKPaymentTransactionState transactionState
SKPaymentQueue
NSArray *transactions--------------------------------------------------------------------------------------------------------------------------------------------+ (SKPaymentQueue *)defaultQueue+ (BOOL)canMakePayments- (void)addPayment:(SKPayment *)payment- (void)restoreCompletedTransactions- (void)finishTransaction:(SKPaymentTransaction *)transaction- (void)addTransactionObserver:(id )observer- (void)removeTransactionObserver:(id )observer/*iOS6*/- (void)startDownloads:(NSArray *)downloads- (void)pauseDownloads:(NSArray *)downloads- (void)resumeDownloads:(NSArray *)downloads- (void)cancelDownloads:(NSArray *)downloads- (void)restoreCompletedTransactionsWithApplicationUsername:(NSString *)username //iOS7
SKReceiptRefreshRequest(ios7)
NSDictionary *receiptProperties
- (id)initWithReceiptProperties:(NSDictionary *)properties
SKProductsResponse
NSArray *productsNSArray *invalidProductIdentifiers
SKPayment
+ (id)paymentWithProduct:(SKProduct *)product
SKRequestDelegate
- (void)requestDidFinish:(SKRequest *)request- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
StoreKit框架中几种重要的类及协议
SKProductsRequestDelegate
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
SKPaymentTransactionObserver
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions- (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue- (void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray *)downloads
SKProductsRequest
id delegate
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers
SKDownload(iOS6)
SKDownloadState downloadStatelong long contentLengthNSString *contentIdentifierNSURL *contentURLNSString *contentVersionNSError *errorfloat progressNSTimeInterval timeRemainingSKPaymentTransaction *transaction
SKProduct
NSString *localizedDescriptionNSString *localizedTitleNSDecimalNumber *priceNSString *productIdentifier======iOS6.0========BOOL downloadableNSArray *downloadContentLengthsNSString *downloadContentVersion
SKRequest
- (void)cancel- (void)start
0 条评论
下一页