Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,使用带有tableviews的sqlite3,将数据从tableView传递到视图控制器的事实实际上并没有起作用。(尝试了segue的准备并没有工作)所以我试图将所选行的内容分配到然后由第二个视图控制器访问的全局变量。我该怎么做?
在 .h 文件中,我应该将其声明为外部变量,并且在每个 .m 文件中正常声明它,在这种情况下,我们将可以全局访问该变量。