Giter Site home page Giter Site logo

tdlikertscaleselectorview's People

Contributors

elprl avatar paulleo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mohsinalimat

tdlikertscaleselectorview's Issues

Cannot add new question

Hello.

First, thanks for the code.
I'm having problems when adding a new question to the view. I thought that just by copying the first one and pasting it at the bottom would be enough. But nothing happens.
` override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.

    //example using code
    if let storyboardLikertView = self.view.viewWithTag(1) as? TDLikertScaleSelectorView {
        storyboardLikertView.delegate = self
    }
   
   
    
    
    let likertView3 = TDLikertScaleSelectorView(withConfig: config)
    likertView3.delegate = self
    likertView3.tag = 4
    self.view.addSubviewForAutoLayout(likertView3)
    NSLayoutConstraint.activate([
        likertView3.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
        likertView3.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
        likertView3.topAnchor.constraint(equalTo: self.view.topAnchor, constant: 100),
        likertView3.bottomAnchor.constraint(equalTo: self.view.bottomAnchor)
        ])

that is what I've inserted (copying first)

}

}`

How to programatically set likert value in a large table

Hello.
The code works perfectly, but in a large table of items, when scrolling, cells lose their value. I guess I know how to keep the results (array) but how do I change the state of a question (answer button) programatically?
Thanks

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.