Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Custom UIView and Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom UIView and Interface Builder



My problem is this. I need to build a rather complex UIView with lot's of labels and widgets, but much of the information to be displayed is not now until runtime, and some data might not be available. In the case data is not available, i need the label to disappear, not just hide. For instance, let's say i have a section which can contain up to three labels:
[[Label A] [Label B] [Label C]]
In the best scenario, on runtime i will have all the data to fill the three label programmatically, but life is not always that nice, and then i could just not get data to fill Label B, in which case i to "print" out just Label A and Label C, centered in the same section,
[ [Label A] [Label C] ]
that's why hidden the label will not do the trick (because even hidden, the label will be there claiming screen real state.
Actually, the entire section might need to be "erased".
I do know this seems like a damn RTFM question, but i do read quite a few manuals (books) and i have found nothing. I do have found [this discussion][0] and i wonder if anyone could help me to find how to control my xib (nib) in order to publish labels on demand.
Best.


[0]: http://discussions.apple.com/thread.jspa?threadID=1582722&tstart=3
_______________________________________________

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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.