tencent cloud

Tencent Cloud Super App as a Service

ドキュメントTencent Cloud Super App as a Service

Customizing Image Preview

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2025-07-04 18:03:44
AI翻訳
The mini program SDK provides a default image preview implementation, which is triggered when the mini program calls the multimedia selection (wx.previewImage).
You can customize the image preview by overriding the - (void)navigationController:(UINavigationController *)navigationController presentImageWithCurrentUrl:(NSString *)currentAbsoluteUrl imageUrlArray:(NSArray*) absUrlsInPreviewArray method.
The default image preview page is shown as follows:

// Image preview
// @param navigationController - The navigation bar where image preview is initiated
// @param currentAbsoluteUrl - URL of the current page
// @param absUrlsInPreviewArray - Images to be previewed
- (void)navigationController:(UINavigationController *)navigationController
presentImageWithCurrentUrl:(NSString *)currentAbsoluteUrl
imageUrlArray:(NSArray *)absUrlsInPreviewArray;




ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック