How to use contentHorizontalAlignment in a UIControl subclass?
How to use contentHorizontalAlignment in a UIControl subclass?
- Subject: How to use contentHorizontalAlignment in a UIControl subclass?
- From: Bill Garrison <email@hidden>
- Date: Mon, 26 Jul 2010 14:28:30 -0400
I've also posted this at <http://stackoverflow.com/questions/3337717/uicontrol-contenthorizontalalignment-how-to-use-in-a-subclass>
I have a UIControl subclass that manages a set of five subviews; each subview is a custom UIView subclass (i.e. not a UILabel or UIImageView).
I'm expecting UIControl to provide some kind of base-level layout behavior given the presence of `contentHorizontalAlignment` and `contentVerticalAlignment` properties.
From experimentation, it does not appear that UIControl actually honors either of these property values when doing subview layout, at least when the subviews are custom UIView subclasses.
Am I off-base? I don't object to implementing my own layout behavior. I just don't want to be fighting the framework if UIControl already provides some layout behavior that I should be using.
Thanks,
Bill
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden