aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/iOSSampleApp/Shared/SkOptionListController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/iOSSampleApp/Shared/SkOptionListController.mm')
-rw-r--r--experimental/iOSSampleApp/Shared/SkOptionListController.mm15
1 files changed, 11 insertions, 4 deletions
diff --git a/experimental/iOSSampleApp/Shared/SkOptionListController.mm b/experimental/iOSSampleApp/Shared/SkOptionListController.mm
index d5241348b1..0f67a0bdb9 100644
--- a/experimental/iOSSampleApp/Shared/SkOptionListController.mm
+++ b/experimental/iOSSampleApp/Shared/SkOptionListController.mm
@@ -1,3 +1,10 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
#import "SkOptionListController.h"
@implementation SkOptionListController
@@ -37,14 +44,14 @@
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-
+
static NSString *CellIdentifier = @"Cell";
-
+
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
-
+
cell.textLabel.text = [fOptions objectAtIndex:indexPath.row];
if (indexPath.row == fSelectedIndex) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
@@ -52,7 +59,7 @@
}
else
cell.accessoryType = UITableViewCellAccessoryNone;
-
+
return cell;
}