tencent cloud

Tencent Cloud Super App as a Service

Customizing Image Preview

Download
Focus Mode
Font Size
Last updated: 2025-07-04 18:03:44
AI-Translated
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;




Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback