AppStoreStyleHorizontalScrollView
AppStoreStyleHorizontalScrollView copied to clipboard
scrollview add items Not remove
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
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?