I know my title view is a UISegmentedControl, Xcode still warns me...

Posted by Travis on Stack Overflow See other posts from Stack Overflow or by Travis
Published on 2010-03-26T23:01:37Z Indexed on 2010/03/26 23:03 UTC
Read the original article Hit count: 212

I have a UINavigationalController of which I've set the titleView to a UISegmentedControl.

Later on, if I do something like.

[self.navigationItem.titleView setEnabled:NO forSegmentAtIndex:0];

I get a warning saying that UIView may not respond to this message. Of course it does and works fine but how do I properly get rid of the warning?

© Stack Overflow or respective owner

Related posts about xcode

Related posts about iphone-sdk