Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to register in Swift 3 #8

Closed
muzamilhassan1987 opened this issue Feb 22, 2017 · 1 comment
Closed

Unable to register in Swift 3 #8

muzamilhassan1987 opened this issue Feb 22, 2017 · 1 comment

Comments

@muzamilhassan1987
Copy link

I am getting this error when using swift 3

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
</Users/soomroshahid/Library/Developer/CoreSimulator/Devices/608B89C1-6BB2-4486-B747-4E8BCD976E8B/data/Containers/Bundle/Application/A0656148-9E39-4907-8D1B-3B965E8ACA70/SmartMart.app/Frameworks/EHHorizontalSelectionView.framework> (loaded)' with name 'EHHorizontalViewCell''

@josshad
Copy link
Owner

josshad commented Jun 15, 2017

Fixed in 1.2.0

Example:

    @IBOutlet weak var hSelView: EHHorizontalSelectionView!
    var items = ["Living Room", "Kitchen", "Bathroom", "Balcony"]
    override func viewDidLoad() {
        super.viewDidLoad()
        hSelView.delegate = self

    }
    
    func numberOfItems(inHorizontalSelection hSelView: EHHorizontalSelectionView) -> UInt {
        return UInt(items.count)
    }
    
    func titleForItem(at index: UInt, forHorisontalSelection hSelView: EHHorizontalSelectionView) -> String? {
        return items[Int(index)]
    }

@josshad josshad closed this as completed Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants