Ios 必须调用超类“UITextView”的指定初始值设定项

Ios 必须调用超类“UITextView”的指定初始值设定项,ios,swift,Ios,Swift,在以下swift代码中,我得到一个错误: 必须调用超类“UITextView”的指定初始值设定项 此处声明了方便初始值设定项UIKit.UITextView // Create a new text view with the specified text container (can be nil) - this is the new designated initializer for this class @available(iOS 7.0, *) public init(frame:

在以下swift代码中,我得到一个错误:

必须调用超类“UITextView”的指定初始值设定项 此处声明了方便初始值设定项UIKit.UITextView

 // Create a new text view with the specified text container (can be nil) - this is the new designated initializer for this class
@available(iOS 7.0, *)
public init(frame: CGRect, textContainer: NSTextContainer?)
对于这一行:

super.initframe:frame


有什么办法可以解决这个问题吗?

根据UITextView的文档

 // Create a new text view with the specified text container (can be nil) - this is the new designated initializer for this class
@available(iOS 7.0, *)
public init(frame: CGRect, textContainer: NSTextContainer?)
发件人:指定的初始值设定项为initframe:,textContainer:。