Created
January 19, 2010 09:01
-
-
Save RonchettiAssociati/280789 to your computer and use it in GitHub Desktop.
This file contains 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)selectedItem:anItemView | |
{ | |
var tag = [anItemView._toolbarItem tag]; | |
var viewsBefore = [[myMenu _toolbarView] subviews]; | |
var index = [viewsBefore indexOfObject:anItemView]; | |
if ([selectableItemsArray containsObject:tag]) | |
{ | |
switch(tag) | |
{ | |
case "Persone": [toolbarItem6 setView:segmentedControl1]; [toolbarItem6 setLabel:"Choose"]; break; | |
case "Organizzazioni": [toolbarItem6 setView:segmentedControl2]; [toolbarItem6 setLabel:"Choose"]; break; | |
default: [toolbarItem6 setView:nil]; [toolbarItem6 setLabel:""]; break; | |
} | |
[myMenu _reloadToolbarItems]; | |
var viewsAfter = [[myMenu _toolbarView] subviews]; | |
[viewsAfter[index] setBackgroundColor:colorBRoLightGray]; | |
[viewsAfter[index]._labelField setTextColor:[CPColor whiteColor]]; | |
} | |
[app02Controller menuSelection:tag]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment