-
Notifications
You must be signed in to change notification settings - Fork 0
lyokato/objc-PXListView-TextHeight
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
======================================================================= INSTALL ======================================================================= Copy files - PXListView+TextHeight.h - PXListView+TextHeight.m ======================================================================= DEPENDENCY ======================================================================= PXListView https://github.com/Perspx/PXListView ======================================================================= USAGE ======================================================================= - (CGFloat)listView:(PXListView *)aListView heightOfRow:(NSUInteger)row { NSDictionary *item = [listItems objectAtIndex:row]; NSString *text = [entry valueForKey:@"message"]; // [font, lineFragmentPadding] set same setting for your NSTextView in your cell return [aListView heightForText:text font:[NSFont fontWithName:@"Lucida Grande" size:12.0] lineFragmentPadding:5.0 horizontalPadding:60.0 verticalPadding:30.0 minHeight:60.0]; } ======================================================================= License ======================================================================= MIT License Copyright (c) 2012 Lyo Kato <lyo.kato at gmail dot com> All rights reserved.
About
PXListView Category to calculate height of row including variable text
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published