-
Notifications
You must be signed in to change notification settings - Fork 0
/
SASection.m
41 lines (34 loc) · 1.02 KB
/
SASection.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// SASection.m
// CDFamily
//
// Created by Scott Ashmore on 12-01-30.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "SASection.h"
@implementation SASection
@synthesize headerText;
@synthesize myRows;
- (void) addRowWithType:(FieldTypes)myType label:(NSString *) myLbl data:(NSString *) myDta withTag:(int)myTag
{
SARow *newRow = [[SARow alloc] init];
[newRow addRowWithType:myType label:myLbl data:myDta withTag:myTag];
if (myRows == nil)
{
myRows = [[NSMutableArray alloc] init];
}
[myRows addObject:newRow];
newRow = nil;
}
- (void) addRowWithOptionsAndType:(FieldTypes)myType label:(NSString *) myLbl data:(NSString *) myDta options:(NSArray *) myOptions withTag:(int)myTag
{
SARow *newRow = [[SARow alloc] init];
[newRow addRowWithOptionsAndType:myType label:myLbl data:myDta options:myOptions withTag:myTag];
if (myRows == nil)
{
myRows = [[NSMutableArray alloc] init];
}
[myRows addObject:newRow];
newRow = nil;
}
@end