elprl / tdlikertscaleselectorview Goto Github PK
View Code? Open in Web Editor NEWUI Control for displaying a Likert Scale question
License: MIT License
UI Control for displaying a Likert Scale question
License: MIT License
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)
}
}`
I have 77 questions, and I know how to add them manually (typing). Is there a way to create a loop in the switch indexPath.row
part?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.