跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • SwiftUI VStack 放多几个组件就报 Argument passed to call that takes no arguments 何解?
未分類
5 4 月 2020

SwiftUI VStack 放多几个组件就报 Argument passed to call that takes no arguments 何解?

SwiftUI VStack 放多几个组件就报 Argument passed to call that takes no arguments 何解?

資深大佬 : krabs 85

报错的代码 struct CarInfo: View { @State var showAlert = false var body: some View { VStack{ List { Text(“123”) //此处报错 Argument passed to call that takes no arguments Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) //但是 删除几个 Text 组件后 就没报错 怎么办? } } }

大佬有話說 (2)

  • 資深大佬 : Sricecake

    SwiftUI 一个视图层级不能超过 10 个子视图

  • 主 資深大佬 : krabs

    @Sricecake 请问这种情况怎么办?怎么显示多个 Text

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具