weilsonwonder / WWCalendarTimeSelector

A android inspired iOS date/time picker
MIT License
317 stars 126 forks source link

I need help #5

Closed nincao closed 8 years ago

nincao commented 8 years ago

Class: WWCalendarTimeSelector.swift

"Line 606: let picker = UIStoryboard(name: "WWCalendarTimeSelector", bundle: bundle).instantiateInitialViewController() as! WWCalendarTimeSelector"

Note that when the project does not have the same name "Executable file" generates error. I changed like this in the attached image and resolved the error line 606. But spawned another error. I changed "Custom Class" the "Module" field to the name of the current project.

screen shot 2016-07-27 at 01 45 05

and new error

Generates error from this point. Line 671: clockView.delegate = self screen shot 2016-07-27 at 01 50 45

weilsonwonder commented 8 years ago

Hi, have you tried to do this instead?

// 1. You must instantiate with the class function instantiate() let selector = WWCalendarTimeSelector.instantiate()

ajijoyo commented 8 years ago

hello, I got same issue, i manually drag 'source' files to my projects, and check copy item if needed i change module to my project and get same error and yes, i added 'WWCalendarTimeSelector.instantiate()' did i get wrong import files or something?

screen shot 2016-08-05 at 5 27 54 pm
weilsonwonder commented 8 years ago

Hi, I'm not entirely sure why this happens as I'm relatively new to creating libraries, and I'm not entirely sure how it works when you drag and drop source codes from libraries like mine.

Anyone from the community could assist in resolving this? (:

ajijoyo commented 8 years ago

hello i found the problem is, first get ClockView on storyboard

screen shot 2016-08-05 at 23 11 07

second you can remove module on that view(im not sure about remove this module, but its work 😄

screen shot 2016-08-05 at 23 11 14
nincao commented 8 years ago

@ajijoyo thanks a lot, parabens obrigado.