[OC、Swift | MacOS] UI开发遇到的一些问题(持续更新)

写在前面:日常开发总会遇到一些问题,网上的资源既少又重复,所以专门开一个贴来记录。欢迎指教~

1.NSTableView相关     

        1.1 [问题] 在加载数据源方法 tableView:viewForTableColumn:row:中,makeViewWithIdentifier:owner:方法返回的view是nil。

                [解决] tableView的Column和TableCellView的Identifier,需要设置为一样的值(或者Automatic,就是不写),这个在官方文档中有写。

猜你喜欢

转载自blog.csdn.net/qq_41749924/article/details/125050292