I want to change the Navigation bar title of the second view controller to show the name of a "var wordNames" (Array of words), I got an error "Value of type '[String]' has no member 'string'" happens the same if I change to title = wordNames.text
title = wordNames.string
Any help is more than welcome :)
wordNames is an array. You need to use subscript. wordNames[0]
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.