IOS: KTPhotoBrowser API implementation

Hi, I am trying to use the KTPhotoBrowser API for my application, but with some problems,
  • When I implement SDWebImage everything works fine, but there are some problems in the gallery view.

1- Thumbnails did not suit the fine, as you see that they are off the screen enter image description here

2- when I click on any of these photos that it should open, with a photo that I can move, pinch and scale photos, but does not

3- I do not know how to define a UINavigationBar !!! why?:

SDWebImageRootViewController.m:

 CGRect rect = CGRectMake(0, 0, self.view.frame.size.width , 44); navbar = [[UINavigationBar alloc] initWithFrame:rect]; //navbar.barStyle = UIBarStyleBlackTranslucent; [self.view addSubview:navbar]; [navbar release]; 

I would be grateful if you have a solution. thanks

+2
source share
1 answer

IPad support was not perfect, but she said it should work on an iPad. Based on the screenshot, it looks like you are missing a navigation controller. The current version of KTPhotoBrowser requires a navigation controller. This is why clicking on a photo does not click on a full-screen browser. You either need to display the KTThumbsViewController (or its subclass) as the controller of the root view of the navigation controller, or click it before starting navigation.

+2
source

Source: https://habr.com/ru/post/1389949/


All Articles