Questions tagged [jtapplecalendar]

an open source iOS calendar view written in Swift

JTAppleCalendar is an open source calendar view written in Swift found at https://github.com/patchthecode/JTAppleCalendar. It can be installed manually, via Cocoapods or Carthage.

Tutorial and example code for this library is found at patchthecode.com.

52 questions
0
votes
1 answer

Creating a JTAppleCalendar inside a xib view

I'm trying to create a calendar using JTAppleCalendar inside a xib view because I want a paging type thing for it. On the first page is some information, and the second page is the calendar. I followed the tutorials for JTAppleCalendar on multiple…
leon
  • 117
  • 2
  • 13
0
votes
1 answer

JTAppleCalendarView: Unable to clear DateCell in prepareForReuse

I am attempting to clear the DateCell in prepareForReuse but my implementation doesn't seem to work when a DateCell containing Activities were selected. I have the following setup: Dummy data for the date 3 April and 4 April only When there are…
Koh
  • 2,687
  • 1
  • 22
  • 62
0
votes
1 answer

How to make 2 calendars in one ViewController using JTAppleCalendar

I have a view controller that contains 2 collection views. So data source and delegate for the first calendar are in view controller extension. For the second i'm trying to make class that conforms data source and delegate protocols. And in…
0
votes
0 answers

JTAppleCalendar delegate method is nil for specific project setup

I'm using JTAppleCalendar library in my app. Week ago I faced strange issue when func calendar(_ calendar: JTAppleCalendarView, didSelectDate date: Date, cell: JTAppleCell?, cellState: CellState) stoped working in App Store version but it was…
0
votes
1 answer

i want to show a simple calender using JTAppleCalender library but it is showing an empty Screen

import UIKit import JTAppleCalendar class ViewController: UIViewController, JTAppleCalendarViewDelegate, JTAppleCalendarViewDataSource { let formatter = DateFormatter() override func viewDidLoad() { super.viewDidLoad() } …
0
votes
1 answer

JTAppleCalendar iOS get month in header to scroll it with calendar

func calendar(_ calendar: JTAppleCalendarView, headerViewForDateRange range: (start: Date, end: Date), at indexPath: IndexPath) -> JTAppleCollectionReusableView { let header =…
G.Kumar
  • 128
  • 9
0
votes
1 answer

JTAppleCalendar delegates not working for Swift

I have a calendar on my app using JTAppleCalendar 7.0. However the delegates for the same are not working. Please refer to the screenshot of my requirement. Somebody kindly share with me the sample delegate functions. Below is the screenshot of…
0
votes
1 answer

Habit tracker with JTAppleCalender and CoreData

I’m trying to create a habit tracker using CoreData and JTAppleCalendar. I want the user to be able to create a habit and then when completed on a set date it saves it for the day. The interface would show a calendar which the user can set habits…
Gerry
  • 1,159
  • 1
  • 14
  • 29
0
votes
1 answer

JTAppleCalendar how to hide the header from displaying for the current section

I am building a calendar using JTAppleCalendar. I have vertical scrolling enabled, supplementary headers showing each month's name and the scrolling mode to stopAtEachSection. With this setup, after scrolling, it always stops at the start of the…
riya
  • 1
  • 1
0
votes
3 answers

Disabling all other days in calendar view

I have a form in which the user will select days and then select a date from calendar view.. for example: the user will first select sun and mon .. then click on date button an so calendar view will be shown .. I want the user just be able to select…
mrs.tat
  • 597
  • 2
  • 6
  • 17
0
votes
1 answer

JTAppleCalendar - how to stop cells for randomly repeating?

I am drawing a circle in cellForItemAt method as follows for a particular condition: if cellState.date == CalendarModel.DUE_DATE { let shapeLayer = CAShapeLayer() let circlePath = UIBezierPath(arcCenter: CGPoint(x:…
as diu
  • 1,010
  • 15
  • 31
0
votes
3 answers

iOS swift: selecting a cell I want to select the entire row

I have a calendar, and I want to select an entire row (week) when I select a day.. this is my code so far: //When a date is selected func calendar(_ calendar: JTAppleCalendarView, didSelectDate date: Date, cell: JTAppleCell?, cellState: CellState)…
Andrea Miotto
  • 7,084
  • 8
  • 45
  • 70
0
votes
0 answers

JTAppleCalender throw error when placing in viewDidAppear Event

I m using below video as a reference for JTAppleCalendar. https://www.youtube.com/watch?v=CQNotydm58s&t=19s I place the code in viewDidAppear Event and I got below error msg: Problem: error msg 1: Thread: EXC_BAD_ACCESS(code=EXC_i386_GPFLT) for…
MilkBottle
  • 4,242
  • 13
  • 64
  • 146
0
votes
1 answer

Calendar implementation on swift

I am working on calendar implementation. I want current and past dates to be selectable, but not future dates, as my application only requires current and past dates. How do I disable the selection of future dates in a calendar?
Ashu Designer
  • 178
  • 1
  • 2
  • 10
0
votes
1 answer

Set time (Hours, minutes) on Date object

I'm trying to let the user pick a date from the calendar and then set what time they want to be reminded on that date. I get the date from this code: func handleCellSelected(view: JTAppleCell?, cellState: CellState){ guard let validCell = view…
CFRJ
  • 157
  • 1
  • 12