fscalendar

FSCalender Events Show in swift

為{幸葍}努か 提交于 2019-12-12 03:35:23
问题 I am new to swift, Am using Fscalender in swift it's working fine, But I want add the Events to Fscalender, I can get events from Json I Want Display the events in calender, I can try some of the code but its not working getting some errors pls help how to display events in calender var EventsData = [Event]() all events are stored Into Event fileprivate lazy var dateFormatter2: DateFormatter = { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter }() inside

Selection color changes the events color in FSCalendar

非 Y 不嫁゛ 提交于 2019-12-02 18:29:49
问题 I have a project using FSCalendar in swift 4. I have events as green and red color. But while selecting the particular dates , the color of events changes to selection color. How can I solve this issue as given in image below. The event dots on the blue selection color must come either green or red. For image you can see this link : https://github.com/WenchaoD/FSCalendar/issues/919 回答1: I think you have not set the eventSelectionColor Property of FSCalendar. You can set it programmatically by

How to compare JSON api dates with FSCalendar and display events in tableview?

限于喜欢 提交于 2019-12-02 02:59:54
问题 I have displayed events dots in calendar but not able to display same events according to month in tableview , I want to display those events like if we change the month and tableview data events should be changed , I'am confused how it can be done . I'am using FSCalendar to display events like dot and in tableview . import UIKit import Alamofire import SwiftyJSON import ToastSwift class CalendarViewController: UIViewController , UITableViewDataSource, UITableViewDelegate,

Disable future dates selection in FScalendar swift

情到浓时终转凉″ 提交于 2019-12-01 11:14:43
I am using https://github.com/WenchaoD/FSCalendar in my project . MaximumSelectedDate is a read-only property .Then how can disable future dates ? A workaround could be to edit FSCalendar method file. First make a bool variable, say isAllowedToLimitFutureDates and a string variable maxValidFutureDateAsString then change line 172 of this link to: if(!isAllowedToLimitFutureDates) { _maximumDate = [self.formatter dateFromString:@"2099-12-31"]; } else { _maximumDate = maxValidFutureDateAsString; // say "2017-03-13" } So when you want to limit the dates set isAllowedToLimitFutureDates = true .

Disable future dates selection in FScalendar swift

旧城冷巷雨未停 提交于 2019-12-01 09:39:00
问题 I am using https://github.com/WenchaoD/FSCalendar in my project . MaximumSelectedDate is a read-only property .Then how can disable future dates ? 回答1: A workaround could be to edit FSCalendar method file. First make a bool variable, say isAllowedToLimitFutureDates and a string variable maxValidFutureDateAsString then change line 172 of this link to: if(!isAllowedToLimitFutureDates) { _maximumDate = [self.formatter dateFromString:@"2099-12-31"]; } else { _maximumDate =

How to make API call for this web service to fetch array of present and absent dates separately in swift?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 13:11:51
it was my previous question to simply display static data on FSCalendar using 2 arrays of present and absent days. How to change background color of events array in FSCalendar swift 3? now I want to fetch the present and absent dates from the following json response in the format of 2array named : present and absent want to display on FSCalendar according to my previous question. How to parse the same?. Please guide me. Thanks in advance. { "Present": [ { "Student_ID": 2, "LeaveLetterApplied": null, "Message": null, "Date": "2017-06-04T00:00:00", "Notify": null, "Status": "Present" }, {

How to change background color of events array in FSCalendar swift 3?

别说谁变了你拦得住时间么 提交于 2019-11-28 07:11:31
问题 I'm having an 2arrays of dates and want to set different colors for particular event please help how to do this. I'm trying to implement following code but its not working its returning nil no color effects no error nothing m stucked on this please help. import UIKit import FSCalendar class myCalendarViewController: UIViewController,FSCalendarDelegate,FSCalendarDataSource,FSCalendarDelegateAppearance { var presentdays = [String]() var absentdays = [String]() @IBOutlet weak var calendar:

How to make API call for this web service to fetch array of present and absent dates separately in swift?

痞子三分冷 提交于 2019-11-28 06:47:13
问题 it was my previous question to simply display static data on FSCalendar using 2 arrays of present and absent days. How to change background color of events array in FSCalendar swift 3? now I want to fetch the present and absent dates from the following json response in the format of 2array named : present and absent want to display on FSCalendar according to my previous question. How to parse the same?. Please guide me. Thanks in advance. { "Present": [ { "Student_ID": 2, "LeaveLetterApplied"