[英]Cannot invoke 'append' with an argument list of type '(VPSettingsMenuViewController.MenuType, String, String)'
Cannot invoke 'append' with an argument list of type '(VPSettingsMenuViewController.MenuType, String, String)'
无法使用类型为'(VPSettingsMenuViewController.MenuType,String,String)'的参数列表调用'append'
Getting the error above on the code below. 在下面的代码上得到上面的错误。
private var menuItems: [(MenuType, String, String)] = []
menuItems.append(MenuType.Home, kHOME, "icon-settings-home")
尝试放置一对圆括号以表明它是一个元组:
menuItems.append((MenuType.Home, kHOME, "icon-settings-home"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.