Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
PSSpecifier: Difference between revisions - iPhone Development Wiki

PSSpecifier: Difference between revisions

From iPhone Development Wiki
m (Move the occlass template down to the bottom, include the navbox.)
Line 6: Line 6:


==== Custom Height ====
==== Custom Height ====
Override - (CGFloat)preferencesTable:(UIPreferencesTable *)table heightForRow:(NSInteger)row inGroup:(NSInteger)group withProposedHeight:(CGFloat)proposedHeight; on your PSListController subclass to change the size of the cell.
On your PSListController subclass, to change the size of the cell override
 
<source lang="objc">
- (CGFloat)preferencesTable:(UIPreferencesTable *)table heightForRow:(NSInteger)row inGroup:(NSInteger)group withProposedHeight:(CGFloat)proposedHeight;
</source>


Call setUserInfo on the specifier to set the inner text view height:
Call setUserInfo on the specifier to set the inner text view height:

Revision as of 11:10, 7 September 2013

Documented by kennytm at networkpx

Additions

PSEditTextViewCell

Custom Height

On your PSListController subclass, to change the size of the cell override

- (CGFloat)preferencesTable:(UIPreferencesTable *)table heightForRow:(NSInteger)row inGroup:(NSInteger)group withProposedHeight:(CGFloat)proposedHeight;

Call setUserInfo on the specifier to set the inner text view height:

[specifier setUserInfo:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:180] forKey:@"height"]];