Wednesday, September 26, 2012

Objective-c

First thing we need to do is to create a new project, Navigation-based Application and call it for example “MyUITableView”.
Open RootViewController.h and create new variable NSMutableArray called myList







- (void)viewDidLoad {
    [super viewDidLoad];
 
 // initializing 
 myList = [[NSMutableArray alloc] init];
 
 // adding objects to the array
 [myList addObject: @"Objective-C"];
 [myList addObject: @"PHP"];
 [myList addObject: @"C#.NET"];
 [myList addObject: @"VB.NET"];
 [myList addObject: @"C++.NET"];
 [myList addObject: @"C"];
 [myList addObject: @"JavaScript"];
 [myList addObject: @"ActionScript"];
 [myList addObject: @"Python"];
 [myList addObject: @"RubyOnRails"];
 [myList addObject: @"Java"];

}

0 comments:

Post a Comment