Baidu Map free Memory Best Answer

Source: Internet
Author: User

The workaround is to include two lines of code in-(void) Mapview: (Mkmapview *) Mapview regiondidchangeanimated: (BOOL) animated

[Self.map Removefromsuperview] ; [Self.view Addsubview:mapview];
Then load your UI page after the two lines of code--Remember

While removing the self.map, reloading the Mapview, two lines of code can achieve the effect of releasing memory.

The instruments test shows that the memory that was previously not released can be freed. The malloc 4.00MB in the map request for the memory, a total of 164M applications, release 132M, the program runs smoothly when the map memory only need 28M.

I hope you'll take it.





Baidu Map free Memory Best Answer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.