私はiOS Charts
を使って棒グラフを使用するアプリケーションを開発しようとしています。私は、cocoapods
ファイルを設定Charts.framework
をインポートし、プロジェクトをコンパイルし、私は次のエラーを得た:のiOSチャートコンパイルエラー
/Users/i3t/Desktop/AppAdmin/eCardFidAdmin/Pods/Charts/Source/Charts/Utils/ChartPlatform.swift:111:30: Method does not override any method from its superclass
このエラーは、この関数で起こっている:
public final override func touchesCancelled(touches: Set<NSUITouch>, withEvent event: NSUIEvent?)
{
self.nsuiTouchesCancelled(touches, withEvent: event)
}
私はオーバーライド・ステートメントを削除し、この新しいエラーが発生しました:
/Users/i3t/Desktop/AppAdmin/eCardFidAdmin/Pods/Charts/Source/Charts/Utils/ChartPlatform.swift:111:21: Method 'touchesCancelled(:withEvent:)' with Objective-C selector 'touchesCancelled:withEvent:' conflicts with method 'touchesCancelled(:withEvent:)' from superclass 'UIResponder' with the same Objective-C selector
誰かがそれをどのように修正できますか?
3署名がイベントに 'に変更したスイフトである: ''代わりwithEvent事象の: ' – dan
はまだ動作しません。それは奇妙ですが、他の機能に問題はありません。関数 "touchesCancelled" –