Skip to content

Instantly share code, notes, and snippets.

@elizaaverywilson
Last active January 3, 2016 15:39
Show Gist options
  • Select an option

  • Save elizaaverywilson/8483959 to your computer and use it in GitHub Desktop.

Select an option

Save elizaaverywilson/8483959 to your computer and use it in GitHub Desktop.
#import "WTAMenuCellPropertiesModel.h"
@implementation WTAMenuCellPropertiesModel
- (void) chooseCellData {
CGSize cellSize1 = CGSizeMake(150, 60);
NSDictionary *cell1 = [[NSDictionary alloc] initWithObjectsAndKeys: @"text", @"cell1text", @"size", cellSize1, @"color", [UIColor whiteColor], nil];
NSArray *arrayOfCells = [NSArray arrayWithObjects: cell1, nil];
int index = arc4random_uniform([arrayOfCells count]) + 1;
NSValue *cellSize = [arrayOfCells[index] objectForKey: @"size"];
CGSize cellSize = NS
[self setCellText: (arrayOfCells[index])[0];
[self setCellColor: (arrayOfCells[index])[3]];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment