Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropdown list is not showing when I am adding dropdown textfield on awakefromnib on a custom view class #134

Open
vipin-prabhakaran opened this issue Apr 1, 2024 · 0 comments

Comments

@vipin-prabhakaran
Copy link

vipin-prabhakaran commented Apr 1, 2024

I am trying to add 3 dropdown textfields on a custom view class like this

import iOSDropDown
class Profiledetails: UIView,UITableViewDelegate,UITableViewDataSource {

and on this override func awakeFromNib() {
super.awakeFromNib()

} I added dropdown textfield with options ,but when selecting no list is showing up ,when I checked in showlist

public func showList() {
if parentController == nil {
parentController = parentViewController
}
backgroundView.frame = parentController?.view.frame ?? backgroundView.frame
pointToParent = getConvertedPoint(self, baseView: parentController?.view)
parentController?.view.insertSubview(backgroundView, aboveSubview: self). parent controller I am getting it as nil ,but the same code in viewdidload is working fine in another view controller in storyboard .is there anything wrong in doing in awakefromnib.can anyone help me with this to fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant