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

http://developer.apple.com/library/ios/#documentation/stringstextfonts/conceptual/coretext_programming/operations/operations.html


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -