2016-09-23 46 views
6

enter image description here奇怪的行爲時更新的Xcode 8

上述內容放置在滾動視圖,但在應用程序的輸出是如下enter image description here

如果我把它工作正常滾動視圖以外這些內容,它被更新之前工作的罰款Xcode的8

+0

這只是一個猜測,但如果將受影響的視圖的contentMode設置爲重繪,這仍然會發生嗎? – Gero

+0

可以顯示 –

回答

1

嘗試增加這些約束的UIScrollView enter image description here

+0

我沒有在這個項目中使用約束烏爾視圖層次:( – Vishnu

+0

做您使用自動佈局? – Ragul

+0

,那麼你可以設置上述限制你的UIScrollView – Ragul

0

不要改變任何東西佈局(Autoresizing/Autolayout)。我認爲這個問題是scrollview內容大小。因此,您更新viewDidLoad方法中的視圖框架。然後更新滾動視圖的內容大小。

- (void)viewDidLoad { 

    [super viewDidLoad]; 
    //set view frame 
    self.view.frame = [UIScreen mainScreen].bounds; 
}