JKCalendar library does not called tableview delegate method
JKCalendar library does not called tableview delegate method
I used JKCalendar calendar library.
In that library, I use JKCalendarTableView
and set the delegate.
JKCalendarTableView
But the TableView
delegate method didSelectRowAt
method not called.
TableView
didSelectRowAt
Code :
let frame = CGRect(x: 0, y: 0, width: reservationView.frame.size.width, height: reservationView.frame.size.height)
calendarTableView = JKCalendarTableView(frame: frame)
calendarTableView.addShadow(cornerRadius: 6, opacity: 0.5, radius: 4, offset: (x: 0, y: 0), color: .lightGray)
calendarTableView.calendar.delegate = self
calendarTableView.calendar.dataSource = self
calendarTableView.delegate = self
calendarTableView.dataSource = self
calendarTableView.tag = TAGS.reservationViewTextFiledTag + 12
calendarTableView.calendar.focusWeek = selectDay.weekOfMonth - 1
calendarTableView.register(UITableViewCell.self, forCellReuseIdentifier: "myCell")
reservationView.addSubview(calendarTableView)
self.calendarTableView.reloadData()
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
where didSelectRowAt ??
– Sh_Khan
Aug 22 at 10:01