ios - Query a nib file for frames, layout data -


I have a UIView subclass that instructs itself from a nib file. Before this, I would like to be able to ask the supervisor with a custom view that what frame is required / wants it.

Currently I have a class method on the custom view, which I manually update, the custom view frame has been changed in IB. Ideally I would like a class method that looks in the nib and reports directly back to the nib.

How can I glimpse in a nib file and retrieve information about it? Should I load it as NSDTTA and have to parse XML or is there some less cruelty?

If any example method will work, you use the -sizeThatFits: method Should be able to

If this definitely requires a class method, then you can write your own class method which is similar to -sizeThatFits: , where you have CGSize The Ultimate has been passed and calculates the appropriate size for viewing.

If you are not receiving data specifically from Nibb, you are receiving data from the associated class.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -