我是新来的Swift
。我创建了第二个swift file
call DeviceInfo.swift
并添加一个UIViewcontroller
in Main.storyboard
.
我还添加一个UITableView
in UIViewcontroller(DeviceInfo)
.
But the error Use of undeclared type 'UITableView'
show after I connect the UITableView
to DeviceInfo.swift
via command + left
. The error show like the following.
Question
1. 为什么Use of undeclared type 'UITableView'
发生了?怎么解决呢?
2. 显示我已连接dataSource
and delegate
to UIViewcontroller(DeviceInfo)
?
提前致谢。
1.import UIKit
2.To connect delegate
and dataSource
,
click the point and drag to your tableView.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)