UIView背后的地图问题,与FourSquare场地详情类似 [英] Issues with map behind UIView, similar to FourSquare venue detail
问题描述
我目前正在使用@yonel中的
- 打开图形太多
- 不使用Lazy-Loading
- 检查
僵尸
是否未启动(低内存设备中崩溃速度更快)
- 对象及其范围的分配/释放不正确
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:
- Unknown reason to receive Memory Warning
- Too many graphics open
- Not using Lazy-Loading
- Iphone App crashing due to Received memory warning even if i am releasing
- Check that
Zombies
isn't turned on (crashes faster in low-memory devices)
- Check that
- I received memory warning and my app crashed. Does it kill autorelease objects?
- Improper allocation/release of objects and their scope
这篇关于UIView背后的地图问题,与FourSquare场地详情类似的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!