Azuritul / AZDropdownMenu

A simple dropdown menu component for iPhone
http://azuritul.github.io/AZDropdownMenu
MIT License
193 stars 50 forks source link

CellTapHandler Assign-Error #38

Open danielbeicht opened 6 years ago

danielbeicht commented 6 years ago

Hi,

even with your example I get following error message for this line: menu.cellTapHandler = { [weak self] (indexPath: NSIndexPath) -> Void in

Message: Cannot assign value of type '(NSIndexPath) -> Void' to type '((IndexPath) -> Void)?'

SimSel02 commented 6 years ago

I solved it Changing NSIndexPath to IndexPath on [weak self] (indexPath: NSIndexPath) -> Void in inside cellTapHandler I think that is a swift translation problem.