ios - User Control Width of UITextView -
i have uitextview
subview of uiview
. frame of uiview
can never change.
i added uipinchgesturerecognizer
, uirotategesturerecognizer
uitextview
user scale , rotate uitextview
. however, realized pinching scale not work right now, because doesn't allow user increase width of uitextview
if necessary. example, if user pinch scale uitextview
smaller size, width of uitextview
should increase more input until width reaches trailing edge of uiview
. how achieved?
i think can add uitextfield in uiview, , make border or triangle @ bottom right corner of uiview. can add gesturerecognizer on triangle, when pan triangle, uiview's scale changed, , suit uitextfield uiview(father view)
Comments
Post a Comment