[英]insertSubview:belowSubview still places view above swift 3.0
[英]insertSubview belowSubview in swift?
我不想只是語法,因為我已經從蘋果公司的開發者網站上獲得了它,我不知道我做錯了什么。 我需要的是實際調用此函數。
任何人都可以告訴我如何在swift中寫下Obj-C代碼?
[self.view insertSubview:VC1.view belowSubview: VC2.view];
在Swift中你可以這樣做:
self.view.insertSubview(VC1.view, belowSubview: VC2.view)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.