memory leak by textfield.autocorrectionType

Hi.


I'm devpeds who has been developing iOS apps for around two years and this is my first posting on this forum:)


Yesterday, I found a memory leak in my code dealing with textfields and a custom toolbar as their inputAccessoryView. I've thought my toolbar I created caused the memory leak somehow, but it turns out the problem is just a single line: "textfield.autocorrectionType = .no". After putting this code wherever possible, I conclude the only thing I can stop the memory leak is deleting that silly code. However, nobody mention that issue, and I would like to ask everyone if there is a same problem like me.

Replies

Have you found the solution? I have the same exact problem, and I've been looking for an answer for a year.