我正在尝试在快速ios应用程序中将子视图控制器添加到父视图控制器,但是当我添加子视图控制器时,<ins class="oneclerks gads_6287" data-revive-zoneid="2885" data-revive-id="5a92998f8535b04ba251e1de1a49283e" style="display: block; width: 728px; height: 90px; text-decoration: none;" data-revive-seq="0" id="revive-0-0" data-revive-loaded="1"><a href="https://swift.adclerks.com/www/delivery/ck.php?oaparams=2__bannerid=231__zoneid=2885__cb=5d071a349f__oadest=https%3A%2F%2Fadclerks.com" target="_blank"><img src="https://swift.adclerks.com/www/images/2cb696c2dd4a812c1c4e9f1d2fa32d7b.png" width="728" height="90" alt="" title="" border="0"></a><div id="beacon_5d071a349f" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src="https://swift.adclerks.com/www/delivery/lg.php?bannerid=231&campaignid=99&zoneid=2885&loc=https%3A%2F%2Fwww.translatesubtitles.com%2F&referer=https%3A%2F%2Fwww.google.com%2F&cb=5d071a349f" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div></ins>
不会出现。我可能会缺少什么?
这是一个可以在操场上尝试的代码段:
activityIndicatorView
loadingViewController视图填充了父视图,并且我尝试在不同点更改背景颜色,并且可以正常工作。但是我尝试添加的activityIndicator或其他任何子视图都没有出现。
答案 0 :(得分:0)
尝试添加行
activityIndicator.startAnimating()
在您的LoadingViewController类的viewDidLoad()方法中