iPhone 应用程序的分发(App Store)版本中出现错误

发布于 2024-10-18 05:59:02 字数 565 浏览 1 评论 0原文

我创建了一个具有自建照片工具的应用程序。当我测试(调试和临时)时,它工作正常。它是使用 UIScrollView 构建的,并在照片的插槽滚动到屏幕上时将每个照片添加到 UIScroll 视图。

但现在该应用程序已在 App Store 中,并且左右滑动加载照片功能无法加载照片。 iPhone 3G 和 iPhone 4 上也出现同样的情况。

您知道为什么/如何发生这种情况吗?

其他信息

经过进一步检查和思考我如何创建它,这里有一些其他注释。

如果您在出现第一张图像后向左/向右滑动,应用程序将开始按顺序“延迟加载”下一张照片,具体取决于您滚动的方式。如果您到达应该加载图像的插槽但该图像尚未加载,您会看到一个 UIActivityIndi​​cator。

对于 App Store 版本,我通常只看到空白屏幕。这让我认为它是延迟加载图像但没有将它们添加到子视图中,或者没有将它们带到视图的前面。如果我滚动得足够快以超过延迟加载,我可以获得一张图像最终出现在其中一个插槽中 - 所以这可能是我的延迟加载的问题 - 但这并不能回答“为什么这在临时加载中起作用”但应用商店版本失败了?”

I created an app that has a self-built photo tool. When I test (Debug & Ad Hoc), it works fine. It is built using a UIScrollView and adds each Photo to the UIScroll view as the photo's slot is scrolled onto the screen.

But now the app is in the App Store and the left-right swipe-to-load-photo feature is not loading the photos. This is the same situation on iPhone 3G and iPhone 4.

Any ideas why / how this could happen?

ADDITIONAL INFO

Upon further inspection and thinking about how I created this, here are some other notes.

If you swipe left/right after the first image appears, the app begins to 'lazy load' the next photo in sequence, depending on which way you are scrolling. If you get to the slot where an image is supposed to load and the image has not yet loaded, you see a UIActivityIndicator.

With the App Store version, I am usually just seeing blank screens. This makes me think it is lazy loading the images but not adding them to the subview, or not bringing them to the front of the view. If I scroll fast enough to outpace the lazy loading, I can get an image to eventually appear in one of the slots - so it is probably an issue with my lazy loading - but that doesn't answer "why does this work in ad hoc but fail in the app store version?"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

旧竹 2024-10-25 05:59:02

清理您的构建,然后从“构建”菜单中选择“构建和分析”。
也许您会在那里得到一些有用的信息:)

Clean your build, then select Build and Analyze from the Build menu.
Maybe you get some helpful information there :)

女中豪杰 2024-10-25 05:59:02

尝试通过在发布模式下构建应用程序来在设备中测试您的应用程序,而不是安装在您的设备中并测试该应用程序。您也可以在模拟器的发布模式下尝试。

try to test your app in device by building it in release mode than install in your device and test the app. You can also try in simulator in release mode.

指尖上得阳光 2024-10-25 05:59:02

您的 Ad Hoc 版本和最终发行版版本之间的编译器优化设置、预处理器定义、SDK 设置等是否相同?如果不是,可能会导致同一设备上两个版本之间的行为出现差异。

Are the compiler optimization settings, preprocessor defines, SDK settings, etc., identical between your Ad Hoc builds and the final Distribution build? If not, that could cause a difference in behavior between the two versions on the same device.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文