iphone - How to display some part of the string in One TextView and reaming in Other -
in application have
iboutlet uitextview *newsfirstpart; iboutlet uitextview *newssecondpart; iboutlet uilabel *newstitle; iboutlet uiimageview *newsimgview; iboutlet uibutton *sendbtn;
i displaying string content in textviews programmically .the following design of scrollview. means here parsing string content xml file . string length should vary in every case .
i want display part of string content in first textview , means should depend height of *newsfirstpart , remaining string in second *newssecondpart.
also want place uibutton 'send' after second textview programmically.
depending height of second textview , have set scrollview content size.
how can display part of string in 1 textview , remaining in other?
!------------------------------! !---------------!--------------! ! newstitle ! !------------------------------! ! ! ! ! ! ! ! newsfirstpart ! newsimgview ! ! ! ! ! fixed height ! ! !---------------!--------------! ! ! ! ! ! newssecondpart ! ! ! ! ! ! ! ! dynamic height ! ! ! !------------------------------- ! !---------! ! ! | sendbtn | ! ! !---------! ! ! ! !------------------------------!
this hard using uikit objects since there no public method in uikit allows know substring of string fit in first textview.
i recommend give try coretext framework.
have @ columns example
Comments
Post a Comment