Hey guys,
I've finally accomplished making a custom view in Code and no xibs.
I cant go on forward now, I got an array with Strings. Each string could be a few words to large sentences.
I want my custom view to show those strings.
About the custom View: the width is fixed and so is the height(it shouldnt be)
How can i add the strings and if necessary wordwrap them to continue in the next line, and have a gap between 2 strings?
the challenge is to Calculate the height of the strings if wordwrapped.
then calculate the gaps between each string(this should be fixed) and then present that as the customView Height.
All this has to be done in drawRect{} ??
I've finally accomplished making a custom view in Code and no xibs.
I cant go on forward now, I got an array with Strings. Each string could be a few words to large sentences.
I want my custom view to show those strings.
About the custom View: the width is fixed and so is the height(it shouldnt be)
How can i add the strings and if necessary wordwrap them to continue in the next line, and have a gap between 2 strings?
the challenge is to Calculate the height of the strings if wordwrapped.
then calculate the gaps between each string(this should be fixed) and then present that as the customView Height.
All this has to be done in drawRect{} ??