Xcode, how do you take an app from an idea to a data model, data structure, or class structure?

Hey everyone!
I'm a beginner xcoder and computer engineering sophomore and have literally spent every hour of the past few weeks reading as much as I possibly can about becoming a developer.
I've found plenty of documentation, and guides on how to do very specific things in xcode and objective-C but am still looking for more information on one topic; how do you decide which data models/structures/controllers etc to use?
I mean, you personally. I've been looking for a resource on this and have not been able to find one. I just finished Apple's iOS Developers Guide and they mention "choosing a data model" but do not describe them in much detail.
The following is what is provided in the guide:
● Choose a basic approach for your data model:
● Existing data model code—If you already have data model code written in a C-based language, you
can integrate that code directly into your iOS apps. Because iOS apps are written in Objective-C, they
work just fine with code written in other C-based languages. Of course, there is also benefit to writing
an Objective-C wrapper for any non Objective-C code.
● Custom objects data model—A custom object typically combines some simple data (strings, numbers,
dates, URLs, and so on) with the business logic needed to manage that data and ensure its consistency.
Custom objects can store a combination of scalar values and pointers to other objects. For example,
the Foundation framework defines classes for many simple data types and for storing collections of
other objects. These classes make it much easier to define your own custom objects.
● Structured data model—If your data is highly structured—that is, it lends itself to storage in a
database—use Core Data (or SQLite) to store the data. Core Data provides a simple object-oriented
model for managing your structured data. It also provides built-in support for some advanced features
like undo and iCloud. (SQLite files cannot be used in conjunction with iCloud.)
● Decide whether you need support for documents:
The job of a document is to manage your app’s in-memory data model objects and coordinate the storage
of that data in a corresponding file (or set of files) on disk. Documents normally connote files that the user
created but apps can use documents to manage non user facing files too. One big advantage of using
documents is that the UIDocument class makes interacting with iCloud and the local file system much
simpler. For apps that use Core Data to store their content, the UIManagedDocument class provides similar
support.
I suppose my question boils down to, how do you decide which structures to use? If you can provide an example of an app idea and how its implemented that would be very helpful and much appreciated!
For example, to implement the idea of an app which allows users to progress through levels of knowledge of a certain subject and rewarding them with badges and such (this is not an actual app just a whim) how would one model that?
Thanks in advance for all your help!!!

SgtChevelle wrote:
how do you decide which structures to use?
Trial and error.
I wish I had a better answer for you, but that pretty much encapsulates it. There is some, but not much, good wisdom out there, but it takes a significant amount of experience to be able to recognize it. The software development community if currently afflicted with a case of copy-and-paste-itis. And the prognosis is poor.
The solution is to be brutal to yourself and others. Focus on what you need and ignore everything else. Remember that other people have their own needs and methods and they might not be applicable to you. Apple, for example, can hire thousands of programmers, set them to coding for six months, pick the best results, and have the end-users spend their own time and monety to test it. If you don't have Apple's resources and power, think twice about adopting Apple's approach. And I am talking from a macro to a micro perspective. Apple's sample and boilerplate code is just junk. Don't assume you can't do better. You can.
Unfortunately, all this takes time and practice. You can read popular books, but never assume that anyone knows more than you do. Maybe they do and maybe they don't. It takes time to figure that out. Just do your best, ignore the naysayers, and doubt other people even more than you doubt yourself.

Similar Messages

  • How do you get your apps from the i tunes library onto your mac?

    how do you get your apps from i tunes library onto your mac

    You don't.  Apps from iTunes are for iOS devices.  Apps for the Mac come from the Mac app store.  Click the apple >> app store.

  • How do you permanently delete apps from all your mac products (MacBook Pro, iPad, iPhone), how do you permanently delete apps from all your mac products (MacBook Pro, iPad, iPhone)

    how do you permanently delete apps from all your mac products (MacBook Pro, iPad, iPhone)

    They are not taking up storage space.  Apple knows you installed them at one time (="purchased", whether you paid money or not), and merely keeps a list so that if you wish to reinstall any of them on this or a future device, you can.  This is useful if maybe you deleted them due to space constraints, and now have a device with more memory and wish to reinstall.
    It's also useful for taking a trip down Memory Lane looking at all the useless apps you installed once then immediately deleted once you realized they were total garbage ...

  • How do you sync your apps from your iphone to a new PC?

    How do you sync your apps from your iphone to a new PC?
    When syncing you receive a warning that you are about to remove all content from your iphone (device)!!! I don't/can't have this happen!! I have the music and calenders etc on iCloud but the Apps don't get stored there (as far as I'm aware).
    Should I de-register the old PC first? Will that then signal iTunes that this is OK to syc the apps with the new??
    Thanks.

    File>Transfer Purchases
    You really need to copy everything from your old computer, or your backup copy of your old computer, to your new one.
    The iphone is not a backup/storage device

  • How do you launch an app from a shell?

    how do you launch an app from a shell?  how about an example... say, launch the texteditor app.

    To open an app from the terminal use the command open followed by the fullpath pf the command.
    So for TextEdit you would enter
    open /Applications/TextEdit.app

  • TS1702 How do you uninstall an app from the IPad? I can find no uninstall feature in settings.

    How do you uninstall an app from an iPad. I cannot find any uninstall feature in settings and no help feature.

    Press on the app and hold until the apps begin to wiggle. Tap on the circled "x" that appears in the upper left corner.
    If you sync with iTunes, then connect the device to your computer and open iTunes. Select the Apps option under the Library heading. Locate the app, select it, then press the Delete key. This removes it completely.

  • How do you clear updated apps from the App Store

    How can you clear updated apps from the list in App Store?

    What do you mean by "clear"?
    Have a look here: iOS 8: App Store Updates Do Not Clear
    If it is the badge count that does not fit, it might be that iTunes is the cause (12.0.1.26).

  • TS1702 How do you remove unwanted apps from your newsstand?

    How do you remove unwanted magazines from your newsstand?

    I have the ipod touch 5th generation. I tried to remove the magazine from the newsstand by pressing and holding the magazine until it wiggled but no delete option appeared (that small little "x" in the upper corner). After some rather frustrating searches that revealed nothing I plugged my ipod into my computer via USB and opened itunes. From there i clicked on the ipod button at the top right under the search option which opened the ipod contents. Click on Apps and you can remove magazines from here. Hope this helps!

  • How do you delete an app from your iPhone? Deleting it from iTunes is not working.

    Deleting the app from iTunes when my iPhone is hooked up the my MacBook isn't working. How do I get rid of apps I don't like?

    On the springboard, locate the app you want to delete. For this example, I’ll use WeatherBug.
    Tap and hold down the icon of the application you want to delete. After a few seconds your screen will start to “wiggle” and an X will appear next to each of the apps you’ve installed via the App Store.
    Tap the X next to the icon of the app you want to remove. When prompted, selectDelete.
    And now it’s gone.
    If the application is listed in your iTunes Applications as well, you’ll want to remove it from there – or else it will re-install the next time you sync. Alternately you can keep the app in your iTunes Applications, and set iTunes not to sync all applications, just the ones you want to keep. See the Applications tab of your device the next time it’s connected in iTunes for syncing options.
    http://www.simplehelp.net/2008/07/12/how-to-delete-apps-from-your-ipod-touch-or- iphone/

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • How do you take a picture from the photo library and put it on your desktop?

    I want to be able to take a picture from my photo libray, and drop it on my desktop to be able to access it immediately. Is this possible?

    There are lots of ways of moving files. 
    A simple and popular way to copy files.
    http://wiki.dropbox.com
    Using iTures to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- The swiss army knife of remote file connect
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    For syncing pc or mac folders to iPad applications.
    "Using SugarSync, you simply designate folders that you want to “sync” to the cloud and it keeps everything in sync anytime you make changes.  This is the way cloud storage should be done and especially if you are using your iPad for buisness or for school."
    The only potential downside is that so many apps for the iPhone/iPad come with Dropbox sync built in which makes it extremely convenient.
    http://www.tcgeeks.com/best-ipad-cloud-sync-app/
    Doug says:
    "This can be done with Dropbox as well using one of the many Dropbox addons…"
    http://wiki.dropbox.com/DropboxAddons

  • How do you delete all apps from the purchased category on your iPad?

    How do you delete the purchased category from your ipad2?

    That's not possible. Your purchased apps are also available on your computer in iTunes / View My Account / Purchase History.

  • How do you turn off apps from sending alerts to rate them or advertising new games on sale?

    I just opened my FIFA 12 game app and first thing that popped up was an alert advertising games that are 80% off. In my notifications I had everything off, notfications center was off, alert style was on none, badge app icon was off, sounds where turned off and view in lock screen was off too. So I'm wondering how I can control not getting these alerts from apps like this one and others who sometimes send alerts to rate them.

    I'd do three things,
    1. Contact the app developer and complain about the request for feedback,
    2. Leave feedback that describes the negative aspect of these alerts requesting feedback, and finally,
    3. Delete the app from you iPad.

  • How do you delete an app from your iPhone and everywhere else?

    Vonage just messaged me that they have a new iPhone app replacing the old one.
    OK.  I'll download it.
    But I want to get rid of the old Vonage app from everywhere it exists in my Apple ecosystem (2 iPhones, iPad and iTunes on my Mac, maybe even my iCloud)
    How is this done?
    Steve

    See: https://discussions.apple.com/thread/3804763?tstart=0

  • How do you close updated apps from apple store

    HI
    I have just upgraded to ISO7 and was wondering how do I clear any apps that I have upgraded through the Apple Store.
    Many thanks
    Steve

    What do you mean by "clear"?
    Have a look here: iOS 8: App Store Updates Do Not Clear
    If it is the badge count that does not fit, it might be that iTunes is the cause (12.0.1.26).

Maybe you are looking for

  • Help! Lost in space with simple problem: my Palm Vx address book no longer opens on my laptop, Inspiron 2650. What do I need to do?

    i have not used my PalmVx in a few years; however, the database on my Laptop, Inspiron 2650, continued to work until recently.  Now it reads:  'the selected port com4 is not available at this time'    and ''Error:Failed to open address book'   Does a

  • I have deployed one application containing youtube video but it is not working pls help

    I have deployed one application containing youtube video but it is not working pls help Application is build using struts2 and is deployed in oracle cloud, login page works fine but the success page is not displayed please help

  • Lenght of imported images is always 1 frame

    I'm learning how to use After Effects (CC2014 in this case) and as soon as I started I found this problem. In all the tutorials I've seen, when an imported file (in this case a .png) is put in the composition, its lenght is by default the same as the

  • PR table/Report

    Hi all, IS there any table/report which lists out the Planned orders and the converter Purchase requisitions from planned orders? I want a report/table which lists out Purchase requisitions and related Planned orders. Thanks, Avani.

  • Few errors during login..

    I install Oracle 10g on Centos 4. Database work good, but ones I must restart my computer and after that when I try to login I've got this errors: Enter user-name: system Enter password: ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory