in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried:
[menu setSelectedSegmentIndex:-1]; >
I would assume that you've called [myArray length] instead of the proper [myArray count] somewhere in your code. NSArray uses the count method, not length for the number of items it contains.
[myArray length]
[myArray count]