According to Copyright Law, the developer owns the code in the very moment it is “fixed in tangible form.” In other words, you own the copyright as soon as you press “Save,” even if you haven’t released anything yet. This is also counts, of course, for the design and creative content that goes on the app. In the vast majority of cases, you will also use the work of others to build your app. This is what the Technology Assignment Agreement is for.