Last active
January 3, 2016 15:39
-
-
Save elizaaverywilson/8483959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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