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
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