Cannot invoke 'append' with an argument list of type '(VPSettingsMenuViewController.MenuType, String, String)'
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"))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.