Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Shrunga

macrumors newbie
Original poster
Hello All,

I need to implement a feature similar to the SMS text input view ie.. the UITextVIew that expands/Collapses along with the background image depending on the input text.

I have done this with the following APIs in the textViewDidChange delegate method

- (CGSize)sizeWithFont🙁UIFont *)font constrainedToSize🙁CGSize)size lineBreakMode🙁UILineBreakMode)lineBreakMode;
- (UIImage *)stretchableImageWithLeftCapWidth🙁NSInteger)leftCapWidth topCapHeight🙁NSInteger)topCapHeight;

But somehow the expansion of the textview and the image are not synchronous. The output looks very non-standard. Also its working is not as smooth as it is in the SMS application.
Im not sure whether my whole approach is wrong

Pointers,hints and views on this issue will be of immense help.

Thanks and ton in advance
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.