Why is UIScrollView leaving space on top and does not scroll to the bottom

后端 未结 13 2760
眼角桃花
眼角桃花 2020-12-01 09:15

I am new to objective-C programming.

I am using UIScrollView with some labels, image and text view on it.

I have turned off Autolayout and already tried wit

13条回答
  •  一个人的身影
    2020-12-01 09:41

    In your view .m file, use this code to fix this problem

    -(void)layoutSubviews{
        // To fix iOS8 bug of scrollView autolayout
        if([[[[[UIDevice currentDevice]systemVersion] componentsSeparatedByString:@"."]objectAtIndex:0] integerValue] == 8){
            [self.tableView setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
        }
    }
    

提交回复
热议问题