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

Unexpectedly found nil #45

Open
waseefakhtar opened this issue Feb 1, 2017 · 0 comments
Open

Unexpectedly found nil #45

waseefakhtar opened this issue Feb 1, 2017 · 0 comments

Comments

@waseefakhtar
Copy link

I’m working on Swift 2.3 using NextGrowingTextView 0.2.0. When I add a UIScrollView and and connect the IBOutlet, I get the error:

fatal error: unexpectedly found nil while unwrapping an Optional value

What I tried to do next is to add it programmatically like:

var growingTextView: NextGrowingTextView!

growingTextView = NextGrowingTextView()
self.inputContainerView = growingTextView
self.view.addSubview(growingTextView)

And I got it working. But the problem is, it doesn’t change how it looks. cornerRadius and backgroundColor etc won’t work on it. Where am I gone wrong?

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

1 participant