以下の内容は上記の文を記述しないことで解決しました
ただ、コードの一部である
override func viewDidLoad() {
super.viewDidLoad()
// デリゲートの設定
self.calendar.dataSource = self
self.calendar.delegate = self
の
self.calendar.dataSource = self
の部分に
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
というエラーがでます
なにかが足りないですか?
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
MacOS(OSX) CocoaPods でのライブラリ関数の適用方法ですが、
CalculateCalendarLogicライブラリを適用する際に
/* CalculateCalendarLogic.swift /
public func judgeJapaneseHoliday(year: Int, month: Int, day: Int) -> Bool {
/*
*
* - Description judge japanese holiday
* - parameter year: year value (Int)
* - parameter month: month value (Int)
* - parameter day: day value (Int)
* - returns: result (Bool)
}
この関数をViewを配置したViewControllerのプログラムに用いる際に
Unterminated '/' comment Insert '/'
Expected '}' in class
という2つのエラーがでます
/*
の場所と
}
の位置がちがうのでしょうか
あなたの回答
tips
プレビュー