UIView背后的地图问题,与FourSquare场地详情类似 [英] Issues with map behind UIView, similar to FourSquare venue detail

查看:247
本文介绍了UIView背后的地图问题,与FourSquare场地详情类似的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用@yonel中的


  1. 打开图形太多

  2. 不使用Lazy-Loading


  • Iphone应用程序崩溃由于收到内存警告即使我发布

    • 检查僵尸是否未启动(低内存设备中崩溃速度更快)


  • 我收到内存警告,我的应用程序崩溃。它是否杀死autorelease对象?

    • 对象及其范围的分配/释放不正确



  • I am currently using this excellent solution from @yonel to make something similar to the FourSquare venue detail page. Within my storyboard I have this:

    The problem is: because the scroll is a bit laggy, when I scroll fast I get a "Received memory warning." message in my console. The curious thing is that if I remove all of the labels and buttons inside the UIView (just below the Map View), everything works fine.

    Any idea what could be wrong?

    解决方案

    As the above posters mentioned, it is difficult to give you any authoritative information without actually seeing some code for your project - and I'm aware that you have already found a workable solution. However, in case other users find this question with similar responses:

    The nature of the error message suggests that you probably had some kind of memory leak in your application. The best way to start debugging this kind of problem is to use the Memory analysis tools found in Instruments.app. For some detailed information on how to do this, take a look at this link from the Apple Developer site.

    Especially if some of the items which are scrolling on or off the screen have graphical information (background images, etc) associated with them - destroying things which are off-screen might help improve performance. You will, of course, then have to re-create the items in question when they come back on-screen.

    If the above doesn't help, take a look at some of the following questions/answers, which provide insight into other problems where this error occurs. Perhaps your issue is/was related:

    这篇关于UIView背后的地图问题,与FourSquare场地详情类似的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆