I get some text from the server and i put it to the UILabel that it will be add to the UITableViewCell and this text change every time it can be tiny or large or with multiple line. my question is how can i make this UILabel to fit the text automatically (multiple line) and resize the UITableViewCell to fit the UILabel?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- how do you prevent page scroll in textarea on mobi
相关文章
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- TransitionFromView removes previous view
You can do the following in your tableView's datasource:
Then, when you configure the cell, get the string and the size the same way, and set the UITextView frame to match the size
You need to implement this:-