I am aware of the UIAppearance API for normal styling capabilities. However, I am more interested in advanced styling possibilities. Take for example the UISegmentedControl. If you wanted to completely change what it looks like and how selected and unselected segments render on the screen, the UIAppearance API seems to fall short. If you look under the covers, a UISegmentedControl is made up of one or more UISegments (a non-public class) which in turn is made up of a UIImageView with a UISegmentLabel (a non-public class) on top. Is there some elegant way to customize the appearance of these non-public classes without overriding everything and writing so much code that you might as well write your own segmented control widget from scratch? In other words, can I somehow change the rendering of the embedded UIImageView without having to put my own custom UIImageView inside as a replacement? Is there some ObjC selector trickery where I can change the painting of the UIImageView's Layer without overriding it requiring overriding the non-public UISegment requiring overriding the UISegmentedControl. Or would it be a good idea to insert my own custom views within the hierarchy of the existing UISegment on top of the existing ones such that mine cover the built-in versions? Any ideas would be appreciated.
-- View this message in context: http://monotouch.2284126.n4.nabble.com/Advanced-styling-advice-tp4657171.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
