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 (change link to iphonedevwiki version)
(Fill out the summary more.)
Line 1: Line 1:
Documented by kennytm at [[Preferences specifier plist]]
A '''PSSpecifier''' represents a user-visible setting or actionable item in the {{fwlink|Preferences}} framework. Specifiers are typically loaded from dictionary representations, but can be created at runtime with {{ObjcCall|PSSpecifier|preferenceSpecifierNamed:target:set:get:detail:cell:edit:|ClassMethod=1}}.
 
Preference specifiers bear properties as documented [[Preferences specifier plist|here]].


== Additions ==
== Additions ==

Revision as of 06:53, 9 September 2013

A PSSpecifier represents a user-visible setting or actionable item in the Preferences framework. Specifiers are typically loaded from dictionary representations, but can be created at runtime with +[PSSpecifier preferenceSpecifierNamed:target:set:get:detail:cell:edit:].

Preference specifiers bear properties as documented here.

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"]];