AZDropdownMenu icon indicating copy to clipboard operation
AZDropdownMenu copied to clipboard

Set a Row Selected.

Open iAviatorJose opened this issue 8 years ago • 1 comments

thank you for this open Source POD. Great Job.

Is there any way i can set a menu already selected. I tried adding this code in your AZDropdownMenu, but of no use.

public var selectedposition : Int = 0{

        didSet {
            let indexPath = NSIndexPath.init(forRow: selectedposition, inSection: 0)
            self.menuView.selectRowAtIndexPath(indexPath, animated: true, scrollPosition: UITableViewScrollPosition.None)
            self.menuView.reloadData()
        }

    }

iAviatorJose avatar Sep 12 '16 05:09 iAviatorJose

did you solve problem ?

koust avatar Jun 23 '18 18:06 koust