In the past i have done subclassing of UITableView and UICollectonView
many times, in which i have assigned self to the delegate and datasource, and it worked fine.
Today i tried to make subclass of UITextField
and in that I am assigning self to its delegate as
self.delegate = self
where delegate is inherited from UITextFiled
.
In above case this is hanging the App forever in iOS 7, but works for iOS 8.
Another surprising thing is, when i try to input the text in it from Hardware keyboard then it works fine but it get hanged on typing characters from On-Screen keyboard.
What may be reason of this, Can any one help me to understand?