Created
January 4, 2011 14:57
-
-
Save primalmotion/764856 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
| - (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