Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Black line in place of status bar #49

Closed
alexanderkhitev opened this issue Sep 19, 2016 · 3 comments
Closed

Black line in place of status bar #49

alexanderkhitev opened this issue Sep 19, 2016 · 3 comments

Comments

@alexanderkhitev
Copy link

alexanderkhitev commented Sep 19, 2016

Hello! I pushed ChatMessageViewController (This class of heir NMessengerViewController) I got the black line in place of status bar. When I presented modally ChatMessageViewController I also saw the black line. How can I change it? Thanks

bug1
bug2

I push ChatMessageViewController

 func didSelectIterlocutor(_ iterlocutor: User) {
        print(iterlocutor.id, iterlocutor.displayName)
        let chatMessengerVC = ChatMessageViewController()
        navigationController?.pushViewController(chatMessengerVC, animated: true)
//        present(chatMessengerVC, animated: true, completion: nil)
    }

ChatMessageViewController 

import UIKit
import Messenger
import AsyncDisplayKit

class ChatMessageViewController: NMessengerViewController {

    // MARK: - Lifecycle

    override func viewDidLoad() {
        super.viewDidLoad()
        // ui 
        showTabBar(bool: false)
        // settings
        setupSettings()

    }

    // MARK: - Settings 

    fileprivate func setupSettings() {
        automaticallyAdjustsScrollViewInsets = false
    }

}
@alexanderkhitev
Copy link
Author

I could to resolve this problem adding of whiteView but I think it is bad solution

 let whiteView = UIView(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: 20))
        whiteView.backgroundColor = .white
        view.addSubview(whiteView)

@DavidSchechter
Copy link
Contributor

I have a fix for this issue. However, I cannot merge it because of issues with #42. Once those are resolved I will merged a fix for this issue.

DavidSchechter pushed a commit to DavidSchechter/NMessenger that referenced this issue Sep 29, 2016
Removed cocoapods related things (+3 squashed commits)
Squashed commits:
[e623b35] Fix for issue eBay#49
[dbf3b77] Fixes for issue eBay#48
[0371ded] Update project settings
DavidSchechter added a commit that referenced this issue Sep 29, 2016
@DavidSchechter
Copy link
Contributor

Fixed in #53

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants