Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 
 
 
 
 

README.md

iOS Frequency Table

A frequency simple table control.


alt tag

Installation

Add the next source files to your project:

FrequencyTable.h
FrequencyTable.m

Using

You can add view in the Interface Builder and set a class to FrequencyTable or create in the code:

FrequencyTable *frequencyTable = [[FrequencyTable alloc] initWithPositionWithX:0
                                                                         withY:0
                                                                  isWideScreen:YES];
[self.view addSubview:frequencyTable];

For adding table data, you can use the following code:

NSMutableArray *array = [[NSMutableArray alloc] init];
  
float total = 0.0;
for (NSInteger i = 0; i < 50; ++i) {
  FrequencyTableRecord *record = [[FrequencyTableRecord alloc] init];
  record.name = [NSString stringWithFormat:@"Item %d", i];
  record.value = RAND_FROM_TO(1, 500);
  total += record.value;
  [array addObject:record];
}
  
[self.frequencyTable setData:array withTotal:total];

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.