0
Comment afficher les événements sur Fscalender?FSCalender n'affiche aucun événement?
Ceci est mon code pour aller chercher les événements de l'appel api.
func SetUpUIDashBoardCalenderdata()
{
APIManager.sharedInstance.FetchParentDashboardCalenderDataFromURL(){(dashBoardCalenderJson)-> Void in
let calenderVar = JSON(dashBoardCalenderJson)
print("calenderVar----",calenderVar)
let info = calenderVar["dates"].rawString()
let jsonData = info?.data(using: .utf8)!
let dictionary = try? JSONSerialization.jsonObject(with: jsonData!, options: []) as! Array<Any>
print("dictionary",dictionary)
}
}
Je reçois les dates dans le dictionnaire comment ces dates populates calendrier. – kishore
Pouvez-vous ajouter un exemple de votre dictionnaire? – Maor
C'est la réponse que je reçois du serveur .. "dates": [ "Lun Oct 02 00:00:00 GMT + 05: 30 2017", "Mer Oct 04 00:00:00 GMT + 05: 30 2017 ", " sam. Oct. 07 00:00:00 GMT + 05: 30 2017 ", " dim. Oct. 08 00:00:00 GMT + 05: 30 2017 ", " lun. Oct. 09 00:00:00 GMT + 05: 30 2017 ", " mer. Oct. 18 00:00:00 GMT + 05: 30 2017 ", " jeu. 19 oct. 00:00:00 GMT + 05: 30 2017 ", " Ven. Oct. 20 00 : 00: 00 GMT + 05: 30 2017 ", " lun. Oct. 23 00:00:00 GMT + 05: 30 2017 ", " mar. Oct. 24 00:00:00 GMT + 05: 30 2017 ",], "status": 1, "message": "Détails récupérés avec succès." } – kishore