我有这个问题:使用未声明的类型'AgendaTableView'
override func viewDidLoad()
{
super.viewDidLoad()
var barItem: SearchBar = SearchBar()
barItem.frame = CGRectMake(0, 0, 320, 56)
var atv: AgendaTableView = (swipeView.currentItemView as! AgendaTableView)
barItem.searchReloadTableDelegate = atv
barItem.listArr = atv.listArr
barItem.listDic = atv.listDic
self.view!.addSubview(barItem)
我该如何解决?
答案 0 :(得分:0)
var parser = NSXMLParser()
var posts = NSMutableArray()
var elements = NSMutableDictionary()
var element = NSString()
var title1 = NSMutableString()
var date = NSMutableString()
var link = NSMutableString()
@IBOutlet weak var menuButton: UIBarButtonItem!
@IBOutlet weak var bannerView: GADBannerView!
override func viewDidLoad()
{
super.viewDidLoad()
var barItem: SearchBar = SearchBar()
barItem.frame = CGRectMake(0, 0, 320, 56)
var atv: MainTableViewController = (swipeView.currentItemView as! MainTableViewController)
barItem.searchReloadTableDelegate = atv
barItem.listArr = atv.listArr
barItem.listDic = atv.listDic
self.view!.addSubview(barItem)