I\'m going to have a 10x10 grid of UIButton objects. Each of these UIButtons is going to need to be referenced by the row and column number, so they should probably be stored in
You can use a GridView from the moriarty library to help with layout - positioning each button where you want it. Building partially on squelart's sample code as a createButtonAtRow:col: method, this could work as follows:
GridView* gridview = [[GridView alloc] initWithRows:ROWS cols:COLS];
for (NSInteger row = 0; row < ROWS; ++row) {
for (NSInteger col = 0; col < COLS; ++col) {
[gridView addsubView:[self createButtonAtRow:row col:col]];
}
}
[myView addSubview:gridView];
[gridView release]; // Let myView retain gridView.