Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextView view frame not changing with autoLayout #53

Open
cloudjanak opened this issue Nov 18, 2015 · 3 comments
Open

TextView view frame not changing with autoLayout #53

cloudjanak opened this issue Nov 18, 2015 · 3 comments

Comments

@cloudjanak
Copy link

No description provided.

@crrobinson14
Copy link

Confirmed here. Anybody have any workarounds? Nothing I'm trying is working here either.

@tristanhimmelman
Copy link
Owner

My best guess would be to call layoutSubviews on THContactPickerView

@romanzes
Copy link

Workaround which worked for me:

@IBOutlet weak var buddyPicker: THContactPickerView!
@IBOutlet weak var contactPickerHeight: NSLayoutConstraint!

func contactPickerDidResize(contactPicker: THContactPickerView!) {
    self.contactPickerHeight.constant = contactPicker.frame.height
    UIView.animateWithDuration(0.2) {
        self.view.layoutIfNeeded()
    }
}

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

No branches or pull requests

4 participants