Giter Site home page Giter Site logo

hadropdown's People

Contributors

hassan-aftab avatar sahilberi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hadropdown's Issues

Issue with IQKeyBoardManager

I changed the type of label from UILabel to UITextField in order to suggest items. But when the keyboard appears, the table view stays under the keyboard.
Any suggestion?

Last Cell in table is not selectable

Hi, this is a great iOS control. Thanks for making it.

However, whatever the array size, the last cell can only be selected if I touch at the very top of the cell. Anyway to fix this?

Dropdown items are not clickable in mac mini.

So one of my team member was working on a macbook and the dropdown is working perfectly fine there. But when I ran the same project in the exact same configuration (iOS 11.2, Xcode version 9.4, swift 4) on mac mini, the dropdown items are simply not clickable. We also have a uibutton behind dropdown items which gets clicked if we click that particular dropdown over that button. It acts as if the dropdown items are gone behind the safe area. I think there is an issue with the library because my code is working fine on laptop.

You cannot select the last item in the menu

Hi, you cannot select the last menu option due to the method below that adds a view footer that overlaps the last item.

To remove this method or comments it works normally the selection of options.

func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { return UIView() }

IBDesignables - The agent crashed

Main.storyboard: error: IB Designables: Failed to render and update auto layout status for MainVC (O7s-dL-JBg): The agent crashed

Main.storyboard: error: IB Designables: Failed to update auto layout status: The agent crashed

swift 3, xcode 8.3.3 (8E3004b)

[SELF-SOLVED] Deselect row and return to default state

solution:

HADropDown

var defaultLabel: String = String()

override func layoutSubviews() {
...
self.defaultLabel = label.text!
...
}

func deselectCell() {
	selectedIndex = -1
	label.text = self.defaultLabel
}

now just call

self.dropdown.deselectCell()

and selected cell will deselect and dropdown will show again the title/selection text

DropDown views does not get removed

If I navigate to another controller, from the controller in which HADropDown is used it does not get removed. May be this is because of adding it on window. Even dropDown.removeFromSuperview() does n't work. Help me in the same.
Thanks in advance.

HADropDown Delegate

To delegate work it is necessary to add the viewDidLoad the assignment down.
dropDown.delegate = self

scroll error

when user scroll the screen the list of items still in the old place
which it appears on the first time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.