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.