OGeek|极客世界-中国程序员成长平台

标题: iphone - iOS : Implementing the KTPhotoBrowser API [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:53
标题: iphone - iOS : Implementing the KTPhotoBrowser API

您好,我正在尝试使用 KTPhotoBrowser API对于我的应用程序,但有一些问题,

1- 缩略图排列不当,如您所见,它们不在屏幕上 enter image description here

2- 当我点击这些照片中的任何一张时,它应该打开照片 View ,我可以移动、捏合和缩放照片,但不能这样做

3- 我无法定义 UINavigationBar !!!为什么?:

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];

如果您有解决方案,我将不胜感激。谢谢你



Best Answer-推荐答案


iPad 支持不太理想,但它表示它应该可以在 iPad 上运行。 根据屏幕截图,您似乎缺少导航 Controller 。当前版本的 KTPhotoBrowser 需要导航 Controller 。这就是为什么点击照片不会推送到全屏浏览器。 您要么需要将 KTThumbsViewController(或其子类)显示为导航 Controller 的 Root View Controller ,要么将其推送到导航堆栈。

关于iphone - iOS : Implementing the KTPhotoBrowser API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8768871/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4