Use of undeclared type error in watch kit app

时间:2015-05-08 10:03:20

标签: watchkit wkinterfacetable

I'm creating a table in an Interface Controller that is not the main entry point in my WatchKit App. In the statement below, the scope is a custom class that is bound to the table's row. The compiler does not resolve the function temp($link) { $patient = mysqli_fetch_assoc(mysqli_query($link, "SELECT name,dob FROM patients WHERE id='69'")); echo $patient['name']; } temp($link); class.

EventDescription

1 个答案:

答案 0 :(得分:0)

我解决了。刚刚创建了一个新的接口控制器并删除了故事板中的旧接口控制器。我之前尝试清除Derived数据并重新启动未解决问题的Xcode。我要在这里提一件事,我已经将Interface Controller源文件移动到另一个文件夹,这必然导致了上述问题。但是,清除派生数据应该已经处理好了。希望此评论可以帮助其他人使用WatchKit应用程序。谢谢大家的支持!