Question

Ok. So I have been testing out a simple application on xcode to become familiar with the platform, but I've come across an interesting situation. Using storyboard, I've dragged two view controllers that are connected by buttons by segues. They both have a uitextfield dragged on them that respond on click when they are the initial view. However, when I move to another viewcontroller from the buttoned segue, the keyboards no longer automatically popup. Is this a problem with apple's uitextfield? (ps. there is no code to this as I thought this would simply be automatic responding)

Was it helpful?

Solution

Look to see if the view hierarchy has become messed up. You can easily see this in the 'document outline.'

Document Outline

If you don't see this pane, look on the left, bottom side of the storyboard and click the small arrow pointing to the left.

What do you see here? Is the Text Field an immediate child of the View or of something else? If it's an immediate child, do you see other children of View listed here that you don't recognize?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top