Nizam
Nizam

Reputation: 4699

Source control xCode 6 and existing files

I have a project in xCode 6 using Swift (my very first experience developing iOS Apps).

I was having problems with gestures (they are alive even after removing them from storyboard) and decide to delete the ViewController I was having problem. The program compiled as it still exists. Then I decide to delete and remove reference to file main.storyboard and everything works just as before.

I believe that is related to source control

Where are those view controllers and even the storyboard stored?

Upvotes: 0

Views: 518

Answers (1)

sebastien FCT
sebastien FCT

Reputation: 630

By using the storyboard, sometimes you are creating some link between your elements and/or some part of your code.

These links will still be, even after deleting the element unless you delete the link itself.

In order to perform good deletion, you should first right click on the element you want to delete and suppress all its links. Then you can safely delete your element:

enter image description here

Upvotes: 3

Related Questions