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

scrollview add items Not remove #27

Open
yoonjason opened this issue Jul 14, 2017 · 1 comment
Open

scrollview add items Not remove #27

yoonjason opened this issue Jul 14, 2017 · 1 comment

Comments

@yoonjason
Copy link

yoonjason commented Jul 14, 2017

let horizontalScrollView = ASHorizontalScrollView(frame:CGRect(x: 0, y: 0, width: timesView.frame.size.width, height: 50))
timeButtonsArr.removeAll()
horizontalScrollView.removeAllItems() ->> Not Working
timesView.addSubview(horizontalScrollView)
for _ in 1...3{
let button = UIButton(frame: CGRect.zero)
button.backgroundColor = UIColor.blue
horizontalScrollView.addItem(button)
}
Give me a solution... plz.

Result of call to 'removeAllItems()' is unused

@terenceLuffy
Copy link
Owner

I see your another question, it looks like the same question? If so, please close the other one.

To answer your question, I need to know why you would like to remove all items before adding any item?

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