Nearly Finished.
iDeveloperz
Member Posts: 1,169
Well guys its been 3 days I think and I have nearly finished my first application that shows you how o make websites. Here is some of the code... (The sheep told me to :P)
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 13;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return [indexPath row] + 75;
}
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@Main Cell];
if (cell == nil){
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@MainCell] autorelease];
}
if (indexPath.row == 0) {
cell.textLabel.text = @Starting Off;
} else if (indexPath.row == 1) {
cell.textLabel.text = @Customising Tags;
} else if (indexPath.row == 2) {
cell.textLabel.text = @Adding Images;
} else if... This carries on for a while
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
[mainController pushViewController:startingOff animated:YES];
} else if (indexPath.row == 1) {
[mainController pushViewController:customisingTags animated:YES];
} else if (indexPath.row == 2) {
[mainController pushViewController:addingImages animated:YES];
} else if... This carries on for a while
}
Hopefully once I do finish this one then I can get started on my gamesalad one. Of course like my games Ill throw a couple of promotional codes for you guys.
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 13;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return [indexPath row] + 75;
}
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@Main Cell];
if (cell == nil){
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@MainCell] autorelease];
}
if (indexPath.row == 0) {
cell.textLabel.text = @Starting Off;
} else if (indexPath.row == 1) {
cell.textLabel.text = @Customising Tags;
} else if (indexPath.row == 2) {
cell.textLabel.text = @Adding Images;
} else if... This carries on for a while
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
[mainController pushViewController:startingOff animated:YES];
} else if (indexPath.row == 1) {
[mainController pushViewController:customisingTags animated:YES];
} else if (indexPath.row == 2) {
[mainController pushViewController:addingImages animated:YES];
} else if... This carries on for a while
}
Hopefully once I do finish this one then I can get started on my gamesalad one. Of course like my games Ill throw a couple of promotional codes for you guys.