简体   繁体   中英

Why UILabel memory leak?

When I try to set text on label the memory usage increased. Why this happens?

在此处输入图片说明

In simulator awesome

在此处输入图片说明

XCode Version 5.1.1 (5B1008), ARC

[Resolved]

Not memory leak but my misunderstanding

在此处输入图片说明

The reason the memory usage is growing is because this tight loop is creating new string allocation. The device is never allow to exercise it retain cycle process.

youre stuck in a while loop m8

Edit: i realize you know this, but when are you going to need to dominate the main thread to set a uilabel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM