I am not sure what I clicked, but I was making a home screen for my first app on which I am learning, and I added something called the “Root View Controller” How do I get rid of it? I didn’t mean to add it.
Also, are controllers here kind of like the code which gets processed after a button is clicked? I have not gotten to that part of the tutorial 🙂
Thanks!
Click on that “Root View Controller” to select it, then press your “Delete” key on the keyboard. That should remove it.
View controllers usually receive actions (i.e. the IBActions that @Fiire referred to… +1 to him!) when you press on a button. If you didn’t set up any actions pointing to the accidentally created root view controller, you should be completely safe to delete the view controller. And if you did set up actions, you can find them using the object inspector and then “X” (cancel) out any connected actions from buttons or controls to the view controller.