What i am trying to do is i read some content from a web service, each content has content type (text,image,button…).
I have to display dynamically the content in the UIView. So what i am trying to do is to create an IBoutlet UIView and check if the content type is a text i convert this uiview to UILable and display the text, if the content type is an image i convert the UIView to a UIImageView etc…
I need to work on the same UIView from the xib file, so how can i change the properties of the UIView to a UILable or a UIImageView.
Thank you
You cannot “change” an UIView to be something different.
I suggest you dynamically add subviews to your view: