0
喜林让我的类定义添加斯威夫特的Objective-C项目编译错误
林让我的类定义了以下错误以下错误
预期的“{”类
我的定义模块=是bridge.h是设置
嵌入内容包含迅速=是
代码如下
class HeaderFooterView : UIView {
override init(frame: CGRect){
super.init(frame: frame)
self.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
self.autoresizesSubviews = true
self.backgroundColor = UIColor.clearColor()
}
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
self.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
self.autoresizesSubviews = true
self.backgroundColor = UIColor.clearColor()
}
}
什么想法?课前