Skip to content

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

Description

@vipin-prabhakaran

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions