In the past, I have subclassed UITableView and UICollectonView many times in which I assigned myself to the delegate and data source, and it worked fine.
Today I tried to subclass UITextField , and in this I assign myself to its delegate as
self.delegate = self
where the delegate inherits from UITextFiled . In the above case, it hangs the application forever in iOS 7, but works for iOS 8. Another amazing thing: when I try to enter text into it from the hardware keyboard, then it works fine, but it can be hung when entering characters from the on-screen keyboard.
What could be causing this, can someone help me understand?
source share