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.
我有一个包含购买摘要的字符串数组,每当加载该视图时,我都需要将该数组显示到文本框中。完成此操作的代码是什么样的?
你会用componentsJoinedByString
componentsJoinedByString
//arr is your curent array NSString *str = [arr componentsJoinedByString:@" "]; textField.text = str;