Dropper icon indicating copy to clipboard operation
Dropper copied to clipboard

DropperSelectedRow never called

Open ocnur opened this issue 8 years ago • 1 comments

i followed the instructions to the word and it didn't work then i tried some other variations and it didn't work as well no need for code because i'm doing what you wrote

the framework looks great! i really hope to use it

thanks :)

ocnur avatar Jan 24 '17 12:01 ocnur

Hey! I created a new project and followed my instructions again, but I wasn't able to replicate the issue you are having.

Here is my View controller:


class ViewController: UIViewController {
    let dropper = Dropper(width: 75, height: 200)
    @IBOutlet weak var dropButton: UIButton!


    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func buttonSelected() {
        if dropper.status == .hidden {
            dropper.items = ["Item 1", "Item 2", "Item 3", "Item 4"] // Item displayed
            dropper.theme = Dropper.Themes.white
            dropper.delegate = self
            dropper.cornerRadius = 3
            dropper.showWithAnimation(0.15, options: Dropper.Alignment.center, button: dropButton)
        } else {
            dropper.hideWithAnimation(0.1)
        }
    }
}

extension ViewController: DropperDelegate {
    func DropperSelectedRow(_ path: IndexPath, contents: String) {
        print(path)
        print(contents)
    }
}

ozziek avatar Jan 25 '17 17:01 ozziek