Hello, I would like to change the appearance of the datePicker component to customize it, I saw. datePickerStyle (GraphicalDatePickerStyle ()) but it's not what I'm looking for so I would like to customize but I don't know how.
Could someone guide me?
Could someone guide me?
You need to precise your spec a little.
How many days do you want to present ? Only the selected month ?
One way to do :
Creating images as
lun
1
How many days do you want to present ? Only the selected month ?
One way to do :
create a scrollView
each day is a 2 lines label that you set with the correct day name and number
enable user interaction for each label, so that user can tap it
Creating images as
lun
1
Code Block class PickerSegmentedControl: UISegmentedControl { var allImages : [UIImage] = [] // To be set before calling. Must be the right size func commonInit() { let numberOfDays = self.numberOfSegments for i in 0..<numberOfDays where i < allImages.count { self.setImage(allImages[i], forSegmentAt: i) } } override init(frame: CGRect) { super.init(frame: frame) commonInit() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) commonInit() } }