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]; 
  1. is there more efficient way that, instance in loadview, in order prevent view load?
  2. is usual method handle subviews layoutsubviews?

thx help

any call before viewdidload cause problems unfortunately, need finish load of view before dismiss it.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -