Dev:CepheiPrefs

CepheiPrefs is a framework that provides preference related convenience methods.

How to use this framework
Headers are available from Cephei’s Github project and the framework can be found at  on a device where Cephei is installed. Theos and Dragon both include the headers so you don’t have to worry about installing them!

Makefile
Add to your preference bundle Makefile:  to the   variable.

Dragon
Add to your DragonMake file:  to the   in the preferences module.

Packaging
Add to your package’s control file:  to the   field.

Getting preferences to work with Cephei
In order to use CepheiPrefs features you need to subclass  for the root controller or

Changing a pane’s appearance
The HBAppearanceSettings class provides methods to change the appearance of a preference pane from colors to changing status bar style

Using custom preference cells
CepheiPrefs also provides custom preference cells, to use them, put them in a preference plist that subclasses  or

Image cell
Display an image in a cell.

&lt;dict&gt; &lt;key&gt;cellClass&lt;/key&gt; &lt;string&gt;HBImageTableCell&lt;/string&gt; &lt;key&gt;height&lt;/key&gt; &lt;integer&gt;50&lt;/integer&gt; &lt;key&gt;icon&lt;/key&gt; &lt;string&gt;icon.png&lt;/string&gt; &lt;/dict&gt;

HBLinkTableCell
Displays a button when tapped, goes to the URL. Can be used with or without any cell type but setting to  applies a tint to it.

&lt;dict&gt; &lt;key&gt;cellClass&lt;/key&gt; &lt;string&gt;HBLinkTableCell&lt;/string&gt; &lt;key&gt;label&lt;/key&gt; &lt;string&gt;iPhone Dev Wiki&lt;/string&gt; &lt;key&gt;url&lt;/key&gt; &lt;string&gt;https://iphonedev.wiki&lt;/string&gt; &lt;/dict&gt;

HBPackageTableCell
Displays a package cell with icon and name and when tapped, opens package in Cydia.

&lt;dict&gt; &lt;key&gt;cellClass&lt;/key&gt; &lt;string&gt;HBPackageTableCell&lt;/string&gt; &lt;key&gt;label&lt;/key&gt; &lt;string&gt;Chirp&lt;/string&gt; &lt;key&gt;packageIdentifier&lt;/key&gt; &lt;string&gt;some.package.id&lt;/string&gt; &lt;!-- If package is not in a default repo, include this --&gt; &lt;key&gt;packageRepository&lt;/key&gt; &lt;string&gt;https://some.repo.com&lt;/string&gt; &lt;/dict&gt;

HBTwitterCell
Displays a cell with name and Twitter avatar.

&lt;dict&gt; &lt;key&gt;cellClass&lt;/key&gt; &lt;string&gt;HBTwitterCell&lt;/string&gt; &lt;key&gt;label&lt;/key&gt; &lt;string&gt;exampleName&lt;/string&gt; &lt;key&gt;user&lt;/key&gt; &lt;string&gt;exampleUser&lt;/string&gt; &lt;/dict&gt;