{"action":"created","issue":{"url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/517","repository_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager","labels_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/517/comments","events_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/517/events","html_url":"https://github.com/hackiftekhar/IQKeyboardManager/issues/517","id":156467659,"number":517,"title":"Multiple depth for IQKeyboardManager's toolbarPreviousNextAllowedClasses","user":{"login":"edopelawi","id":5947111,"avatar_url":"https://avatars.githubusercontent.com/u/5947111?v=3","gravatar_id":"","url":"https://api.github.com/users/edopelawi","html_url":"https://github.com/edopelawi","followers_url":"https://api.github.com/users/edopelawi/followers","following_url":"https://api.github.com/users/edopelawi/following{/other_user}","gists_url":"https://api.github.com/users/edopelawi/gists{/gist_id}","starred_url":"https://api.github.com/users/edopelawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edopelawi/subscriptions","organizations_url":"https://api.github.com/users/edopelawi/orgs","repos_url":"https://api.github.com/users/edopelawi/repos","events_url":"https://api.github.com/users/edopelawi/events{/privacy}","received_events_url":"https://api.github.com/users/edopelawi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-24T10:00:16Z","updated_at":"2016-05-24T11:04:23Z","closed_at":null,"body":"Hi,\r\n\r\nfirst of all, I'd like to thank you for this awesome library, it helped me a lot :)\r\n\r\nI'm currently trying to register a custom `UIView` class with a `UITextField` inside it, lets call it `CustomTextField`. I wanted to make IQKeyboardManager's built-in next and previous button enabled for it, and found that I could do it by registering the class to `toolbarPreviousNextAllowedClasses`.\r\n\r\nProblem is, `CustomTextField` is built using XIB, using the method from [this link] (http://stackoverflow.com/questions/30335089/reuse-a-uiview-xib-in-storyboard). This will make `CustomTextField` have one `UIView` subview, which will be loaded using `UINib(nibName:, bundle:)`, and set the owner using returned nib's `instantiateWithOwner(self, options: nil)`. I just realized that this method will make my `UITextField` become a subview of `CustomTextField`'s subview, instead of become its direct subview.\r\n\r\nIs there any workaround for this? Is it possible to enable the next and previous button for custom views made with method above?\r\n\r\nApologies if similar method has been asked before. Thank you very much!"},"comment":{"url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/comments/221236507","html_url":"https://github.com/hackiftekhar/IQKeyboardManager/issues/517#issuecomment-221236507","issue_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/517","id":221236507,"user":{"login":"hackiftekhar","id":3831495,"avatar_url":"https://avatars.githubusercontent.com/u/3831495?v=3","gravatar_id":"","url":"https://api.github.com/users/hackiftekhar","html_url":"https://github.com/hackiftekhar","followers_url":"https://api.github.com/users/hackiftekhar/followers","following_url":"https://api.github.com/users/hackiftekhar/following{/other_user}","gists_url":"https://api.github.com/users/hackiftekhar/gists{/gist_id}","starred_url":"https://api.github.com/users/hackiftekhar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackiftekhar/subscriptions","organizations_url":"https://api.github.com/users/hackiftekhar/orgs","repos_url":"https://api.github.com/users/hackiftekhar/repos","events_url":"https://api.github.com/users/hackiftekhar/events{/privacy}","received_events_url":"https://api.github.com/users/hackiftekhar/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T11:04:23Z","updated_at":"2016-05-24T11:04:23Z","body":"In general, CustomTextView should be on top of all UITextField. Library will detect all textFields which are inside CustomTextView even if with multiple hierarchy."}}
{"actor":{"display_login":"hackiftekhar"}}