If you have created the UITextField and UIImageViews objects using nib or in storyboard, check whether the IBOutlets of them are connected.
If you have created these UI elements via code(in a function), check the function is getting called.
1
solved Text field and images are nil [closed]