w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
UITextView line spacing changed in iOS 7 - how to calculate the old spacing using Core Text

There is a detailed explanation on line spacing here UITableViewCell with UITextView height in iOS 7?

I use the following function (sizeThatFits) for getting the size of UITextView,

    - (CGSize)contentSizeForTextView:(UITextView *)textView
      {
      return [textView sizeThatFits:CGSizeMake(textView.frame.size.width,
FLT_MAX)];
      }




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.