I am trying to add segments to a segmented controller that is drawn in the .xib with five segments. When I try to compile this loop, I get the following error: "Expected ';' before animated."
What am I doing wrong? I know that this is a bonehead level question, but I cannot see the answer for the life of me right now....
TIA!
Steve O'Sullivan
// inserting names into the UISegmentedControl which has five segments in the xib
for (i = 0; i < 5; i++)
{
insertSegmentWithTitle:[NSString stringWithFormat:@"P-%d", i]
atIndex:i
animated:NO;
}