Search Results for: MVC

Building An iOS App With Sencha Touch And Phonegap From The Start

In the past I’ve mentioned the Phonegap framework as an excellent way for web developers to build iOS, and cross platform Android and iOS app store apps  using web technologies and bypassing the need to learn any new programming languages.

While I haven’t mention Sencha before, Sencha Touch is a framework that you can use to give web apps the same look and feel as native iOS, Android, and Blackberry apps.  Used in conjunction with Phonegap you have a  way to build apps that look just like native iPhone and iPad apps, but created with html/javascript.

While Sencha is a commercial framework, they also have a GPL license and the framework can be downloaded for free.

The guys at Sencha have put together an excellent tutorial on creating a good looking contacts app with Phonegap and Sencha.  The tutorial shows how to install Phonegap and Sencha, creating the interface, creating the data models, and building your app.

You can find the tutorial here:
A Sencha Touch MVC Application With Phonegap

All download links can be found within the tutorial for Phonegap, Sencha Touch, and the project.  The only caveat is on Sencha Touch’s download page it tells you to install Sencha into your personal web server.  Since this project is run within Phonegap you just need to install it into the /www directory of the Phonegap app.

This tutorial is a great way to get started with Phonegap and Sencha Touch.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail

iPhone Application Design – Great Tips

Found an excellent article on iPhone application design.  I’ve written about the MVC pattern in the past, and this article gets right into the details with a terrific example and some diagrams.

You can find the article here:
Design Of An iPhone Application

Some of the really great takeaways in this article:

- The action steps used in creating the controllers.
- Why you should use and understand this stuff.
- The thought process when designing apps.

If you aren’t following the MVC pattern when creating your apps be sure to check the article out.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail

A Quick Explanation of MVC

I was looking through the searches on this site trying to think of what to post about today, and i noticed that, surprisingly to me one of the top searches has consistently been for information on the model-view-controller (MVC) design pattern.  Maybe I shouldn’t be surprised though as this is a pattern that Apple often follows in their libraries, and examples, and is mentioned quite frequently.

A few months ago I posted a video where I gave a rudimentary explanation of MVC, and a method for coming up with some possible class names when developing an app.

You can see this video here:

In summary, MVC is simply this:

A design pattern in which the model (any data in your program), the view (what the user sees), and the controller (a layer that handles all interaction between the view and model) are separated in such a manner that modifying either the view or model component of your program has no effect on one another. 

The purpose:

The purpose is that later on you may need to change your programs view, and by programming things in this matter you will not have to modify your programs model.  Say for instance Apple comes out with an iPad for which the view is programmed somewhat differently than on the iPhone, but you would like to

Now I received some messages after making the video above, some thanking me for making the concept of MVC sound so simple, and others telling me that I had confused them, and wondering how I could understand any of this stuff. 

Well, don’t fret.. I’ve seen arguments all over the place as to what components should be classified in the model, the view, or the controller, and I’ve even seen accomplished "guru authors" mess things up when explaining what goes where, just keep in mind that the key idea here is that you can modify one of these key areas without completely wrecking another key area of your program, and leave the rants to the wannabe coders who like to argue about what exactly what fits what acronym, and MVC is often their target.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail
Tags: , , ,

Understanding Model-View-Controller And Creating A Class Outline

Hi this is the third article in the series on Developing your first Apple iPhone App Store App Step-By-Step, if you missed the first article please check it out here:
Your First Apple iPhone App Store App

In the video below I quickly go over MVC, and then I outline my own process for outlining the classes in smaller apps when developing on my own, to come up with the classes I basically follow these steps:

1. I list all the nouns contained within the objective statement and list of features (that I created in the previous article/video of this series).
2. I take those and create a list of objects by separating the simple objects (objects containing no attributes or other objects), and those that will be created visually in Xcode’s Interface Builder.
3. I take that list of objects, and try to determine what attributes and other objects might be needed by those objects.

From this list I have an outline of the classes to use within the app, it’s by no means perfect or set in stone, but simply to get things going so that I can begin coding.  When developing these simple apps on my own I don’t worry about creating any formal documents.  From this list of classes I begin coding.

Watch the video below where I explain things in more detail:

Please excuse the sound quality of the first minute or so, a slight breeze seems to have affected the mic while outside.
 
Thanks for reading, be sure to come back for the rest of the series where we will finish the simple app.
 

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail
Tags: , , , , , , , , ,

Your First App Store App Step-By-Step – Part 1

This is the first in a series where we will be building a simple app based on the soundboard app that I created which is in the app store that can be found here.

Check out the video:

We’ll be learning:

1) Simple App Design

2) MVC Basics

3) Interface Builder Basics

4) Playing Music Files

5) Basic Accelerometer Use

6) Objective-C Collection Basics

7) Submitting Your App

I hope that you enjoy the series, come back for Part 2

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail
Tags: , , , , , , , , ,