ios - Add/Remove dynamically UIViews from a Storyboard's UIViewController -
i'm new ios programming apologize if question obvious.
i created uiviewcontroller in storyboard, contains uiscrollview , multiple subviews.
these subviews (most uitextviews) filled content external api, , content can nil : in case need remove subview empty.
for set view iboutlet , in viewdidload, if content nil, call
[self.thatview removefromsuperview];
- is there more efficient way that, instance in loadview, in order prevent view load?
- is usual method handle subviews layoutsubviews?
thx help
any call before viewdidload cause problems unfortunately, need finish load of view before dismiss it.
Comments
Post a Comment