Discuss Starting at the iPhone Developer Exchange - Hackint0sh.org; Hey,
I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build ...
-
Starting
Hey,
I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build adGames and python too.
I always wanted to develop for mobile plataform, and now, with the iphone, wich is a good gadget, I decided to join in new and long journey.
I´m studying objective-C around one month and have some doubts.
Follows the code with the doubts:
Classe.h
#import <UIKit/UIKit.h> //importa a classe UIKit
//constuctor of the class with type NSObject that extends a UIApplicationDelegate, it is right?
@interface Classe : NSObject <UIApplicationDelegate> {
//variable type UIWindow (I think that create a screen application)
IBOutlet UIWindow *window;
//I don´t know what id IBOutlet
}
//set properties of the varable
@property (nonatomic, retain) UIWindow *window;
@end
Classe.m
//import the header (is that a constructor of the class?)
#import "teste2AppDelegate.h"
//implement the interface in content
@implementation teste2AppDelegate;
//instance window in content?
@synthesize window;
//metod called when the application run, don´t return nothing(void), recives one parameter UIApplicaton
- (void)applicationDidFinishLaunching: (UIApplication *)application {
//create a textField
//Is it the same that "var _txt:UITextField = new UITextField()" ???
UITextField *_txt = [[UITextField alloc] init];
[_txt setTextColor:[UIColor redColor]];
//set color in red color, this color return from UIColor class
[_txt setText:@"teste"];
//set text
}
//Why do is metod ?
- (void)dealloc {
[window release];
[super dealloc];
}
@end
In my journey I understand that execute one function I use [nameFunction: param1, p: param2. Pp: param3], right?
When compiling this script don't show error and open iPhone emulator, but show a whit screen and not show the text.
Ok, any help will be good help.
Thanks…
-
Similar Threads
-
By schmickr in forum AppleTV 1
Replies: 0
Last Post: 04-08-2011, 07:06 PM
-
By bulldog22 in forum iPhone OS 3.x
Replies: 0
Last Post: 06-19-2010, 11:27 PM
-
By samshack in forum PwnageTool
Replies: 2
Last Post: 11-07-2009, 07:27 PM
-
By jiraphajill in forum iPhone OS 3.x
Replies: 1
Last Post: 06-29-2009, 09:42 PM
-
By flipboi in forum iPhone 3G
Replies: 6
Last Post: 11-17-2008, 12:04 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks