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

Why the class can't be recognized when i try to add a picker cell with two component? #22

Closed
RainbowMango opened this issue Jan 9, 2015 · 1 comment

Comments

@RainbowMango
Copy link

I add a new swift file like 'FormPickerCell' named 'FormTwoComponentPickerCell'. I want to use picker with two components.
I extend FormRowType also as follows
enum FormRowType {
...
case Picker
case TwoComponentPicker
...
}

When i add this new class to FormViewController in function defaultCellClassForRowType like
Static.defaultCellClasses[FormRowType.TwoComponentPicker] = FormTwoComponentPickerCell.self

Xcode says 'Use of unresolved identifier 'FormTwoComponentPickerCell''.
By the way, the new class added just the same as FormPickerCell except class name.

Could any one give me a hit? thanks.

@RainbowMango
Copy link
Author

I found the root cause. When add new file to project, target member ship should select both 'SwiftForms' and 'SwiftFormsTests'

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

1 participant