Learn how to Make iPhone Apps!

Learn how to make iPhone apps with great tutorials and guides at 2makeiphoneapps.com
 
July 21, 2012 - PRLog -- 2 Make iPhone Apps is a website designed to teach you how to make iPhone apps with great tutorials and guides. In this website you will learn all the different aspects of making iPhone apps and more specifically making iPhone games! The different aspects include:
Programming in Xcode (http://www.2makeiphoneapps.com/p/iphone-programming.html),
Game Art (http://www.2makeiphoneapps.com/p/game-art.html), and Game Design (http://www.2makeiphoneapps.com/p/game-design.html). You will also learn about all the
different game engines (http://www.2makeiphoneapps.com/p/app-resources.html) out there for you to use to make an iPhone game or app efficiently.

I am going to do my best to post new things at least twice a week, so stay tuned!

Sample Post: Learning the basics of Objective-C (http://www.2makeiphoneapps.com/2012/07/learning-basics-of-objective-c.html)

WHAT YOU NEED
To make iPhone and iPod Touch games/apps you need to have an apple computer, a iphone developer's license, the iPhone SDK (software development kit), and the knowledge of Programming in Objective-C. When I say apple computer, I mean a real Macintosh. I don't think just having Mac OS X on a Windows computer will work. An iPhone developer's license is $99 a year and you don't NEED that until you want to put your app on to the App Store. The iPhone SDK includes all the tools necessary for making iPhone and iPod apps. Finally, I said you needed knowledge of Programming in Objective-C. Unless you hire a programmer to program for you, you have to know Objective-C, which is what you are going to learn, if you continue reading...


CLASSES, OBJECTS, and METHODS
First concept you should know in Objective-C is that it is an object oriented programming language. Object Oriented programming is a programming paradigm that uses "objects." First off I am going to give definitions (very simple ones):
Object- a thing, commonly referred to as an instance
Method- actions that are performed on the object/instance
Class- where object/instances comes from
OK, I will give you an example so you can easily understand this. Lets say you own a computer. You have a specific computer; one no one else has (an object obviously cant be two places at once). Your specific computer is an instance of a computer. You do certain things to your computer, certain actions, like going on the internet, using email, playing games, or watching movies. Theses actions would be referred to as methods. So in this example the class would be called Computer, your instance would be your specific computer (lets name it myComputer), and the methods for this class would be:
-(void) goInternet;
-(void) useEmail;
-(void) playGame;
-(void) watchMovie;

Notice how I wrote them. That is the way you define your methods. First there is either going to be a plus or minus sign which means if it is a class method or instance method. Next there is the return type (in this case all void). Then there is the method name that you make (you can come up with, usually written in camel case form as I did).
XCODE: Xcode is the programming environment application you use to actually insert and edit code. When you create a new project there will be 2 separate files. One called @interface and the other @implementation. The @interface file (.h) is where you describe the class, and you define the methods and instance variables. The @implementation file (.m) is where you put in the actual code that implements your defined methods. This is how an interface file would look like:

@interface NewClassName: ParentClassName
{
//All your Instance Variable Declarations Go here!
}

methodDeclarations
@end
This is how an implementation file would look like:
@implementation NewClassName;
//All your method definitions Go Here!
@end

Instance variables make up your class. So say you had a class named Computer. Say that the Computer class has the instance variables name, age, size. Every Computer object you made would be made out of a name, age, and size. This is how you would declare (define) those variables:
int name;
int age;
int size;
The int part is the data type which will be discussed in the next section.

OK, the last thing I want to include in this section is show you the specific syntax used for applying methods to your Classes or instances: [classOrInstanceName method];
An example of a class method that would go with the above examples is:
myComputer = [Computer new];
The method new is a factory or class method. It is being applied to the Computer class. This method would return data and store it in the object myComputer.


DATA TYPES
Includes int, float, double, char, and more!
int- most basic data type, a variable declared as int can hold integral values
float- variable declared as float can be used to store values that has decimal values
double- similar to float, variable declared as double can store about twice as many digits as float
char- stores single character
id- variable declared as id can store any object of any type, this variable is important for some more advanced concepts like polymorphism and dynamic binding which is used a lot

For more go to http://www.2makeiphoneapps.com
End
Source: » Follow
Email:***@2makeiphoneapps.com Email Verified
Tags:Learn, Make, iPhone, Apps, Games
Industry:Games Technology
Location:Raleigh - North Carolina - United States
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse



Like PRLog?
9K2K1K
Click to Share