Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Set a Row Selected. #26

Open
iAviatorJose opened this issue Sep 12, 2016 · 1 comment
Open

Set a Row Selected. #26

iAviatorJose opened this issue Sep 12, 2016 · 1 comment

Comments

@iAviatorJose
Copy link

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()
        }

    }
@koust
Copy link

koust commented Jun 23, 2018

did you solve problem ?

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

No branches or pull requests

2 participants