UITextFieldDelagate


#1

I am doing the challenge for this chapter, and to do so I made a separate class called NewAssetTypePicker. I configured it, and it will display when the plus button is tapped. One of its subviews is a UITextField. When tapped, you are prompted to enter a name. After doing so, you can tap the done button, which, as far as I know, will call the textFieldShouldReturn method in the delegate. I have made the NewAssetTypePicker the assetField’s delegate in the init method. Besides this, all I have done is call this method in NewAssetTypePicker.m. What am I missing? When the done button is pressed, nothing happens. Oh, I called the resignFirstResponder method in textFieldShouldReturn. But still, nothing happens.

If you want specific bits of code, please ask. Any feedback would be great!