//
//  AppInfoScreen.swift
//  StudyBox_iOS
//
//  Created by Kacper Cz on 28.05.2016.
//  Copyright © 2016 BLStream. All rights reserved.
//

import UIKit

class AppInfoScreen: StudyBoxViewController, UITextViewDelegate {
    
    @IBOutlet weak var infoTextView: UITextView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.infoTextView.contentOffset = CGPoint(x: infoTextView.contentInset.left, y: infoTextView.contentInset.top)
    }
}

//
//  AppInfoScreen.swift
//  StudyBox_iOS
//
//  Created by Kacper Cz on 28.05.2016.
//  Copyright © 2016 BLStream. All rights reserved.
//

import UIKit

class AppInfoScreen: StudyBoxViewController, UITextViewDelegate {
    
    @IBOutlet weak var infoTextView: UITextView!
    
    private var navbarHeight: CGFloat  {
        return self.navigationController?.navigationBar.frame.height ?? 0
    }
    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        let navBarAndStatus = navbarHeight + UIApplication.sharedApplication().statusBarFrame.height
        self.infoTextView.setContentOffset(CGPoint(x: 0, y: -navBarAndStatus), animated: false)
    }
}

Fix content offset and scrolling
Fix content offset and scrolling
