我是stackOverflow的新手,学习迅捷.我在使用Stretch headers.UIScrollViewDelegate时遇到错误"viewController与协议的冗余一致性.我在下面指定我的代码.请更正任何一个.
class ViewController: UITableViewController , UIScrollViewDelegate {
private let kTableHeaderHeight : CGFloat = 300.0
// Using Implicitly Unwrapped Optional, UIView!
var headerView:UIView!
let items = [
NewsItem(category: .World, summary: "Climate Change protests, Need to preserve our Ecosysytem"),
NewsItem(category: .India, summary: "Climate Change protests, Need to preserve our Ecosysytem"),
NewsItem(category: .America, summary: "Climate Change protests,Need to preserve our Ecosysytem"),
NewsItem(category: .Japan, summary: "Climate Change protests, Need to preserve our Ecosysytem"),
NewsItem(category: .China, summary: "Climate Change protests, Need to preserve our …
Run Code Online (Sandbox Code Playgroud)