Skip to content

Instantly share code, notes, and snippets.

@primalmotion
Created January 4, 2011 14:57
Show Gist options
  • Select an option

  • Save primalmotion/764855 to your computer and use it in GitHub Desktop.

Select an option

Save primalmotion/764855 to your computer and use it in GitHub Desktop.
- (void)_addItemToModulesTabView:(TNModule)aModule
{
var frame = [_mainModuleView bounds],
newViewItem = [[TNModuleTabViewItem alloc] initWithIdentifier:[aModule name]];
// newScrollView = [[CPScrollView alloc] initWithFrame:frame];
// [newScrollView setAutoresizingMask:CPViewHeightSizable | CPViewWidthSizable];
// [newScrollView setAutohidesScrollers:YES];
// [newScrollView setBackgroundColor:[CPColor whiteColor]];
//
frame.size.height = [[aModule view] bounds].size.height;
[[aModule view] setFrame:frame];
[newViewItem setModule:aModule];
[newViewItem setLabel:[aModule label]];
[newViewItem setView:[aModule view]];
//[aModule initializeWithEntity:_entity andRoster:_roster];
//[newScrollView setDocumentView:[aModule view]];
//[aModule _beforeWillLoad];
//[_mainTabView addTabViewItem:newViewItem];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment