I have a parent view controller which have UITextViews
inside and i needed notifications on it soo i did add observer for self on parentViewCon.
I have a subview inside of parentViewCon which is itself viewcontroller but it is added on a small portion of parentViewController.
This childViewCon have its own UITextFields
and i need to have its own keyboard notification observers.
Now problem is when i tap UITextField
in childViewCon the notifications of parent are fired as well because i couldn't remove those observers due to work flow of app. Is there a work around or a way to solve this kind of dependency?
I solved this scenario by Engaging Child view Controller with parent notifications i check for the UIControls
if they exist in child then i resolve their keyboard notifications inside parent.