HBLinkTableCell Class Reference

Inherits from HBTintedTableCell : PSTableCell
Declared in HBLinkTableCell.h

Overview

The HBLinkTableCell class in CepheiPrefs displays a button that, when tapped, opens the specified URL. A typical icon can be used, or the initials key can be set to one or two characters to show as the icon.

This cell can either be used without setting any cell type, or by setting it to PSButtonCell to get a tinted button.

Requires iOS 7.0 or later.

Specifier Parameters

initials Optional. One or two characters to show as the icon.
url Required. The URL to open.
subtitle Optional. A subtitle to display below the label. The default is an empty string, hiding the subtitle.

Example Usage

<!-- With icon: -->
<dict>
    <key>cellClass</key>
    <string>HBLinkTableCell</string>
    <key>icon</key>
    <string>example.png</string>
    <key>label</key>
    <string>Example</string>
    <key>url</key>
    <string>http://example.com/</string>
</dict>

<!-- With initials: -->
<dict>
    <key>cellClass</key>
    <string>HBLinkTableCell</string>
    <key>initials</key>
    <string>XX</string>
    <key>label</key>
    <string>Example</string>
    <key>url</key>
    <string>http://example.com/</string>
</dict>

<!-- With a subtitle: -->
<dict>
    <key>cellClass</key>
    <string>HBLinkTableCell</string>
    <key>label</key>
    <string>Example</string>
    <key>subtitle</key>
    <string>Visit our amazing website</string>
    <key>url</key>
    <string>http://example.com/</string>
</dict>

<!-- With a subtitle, in big mode: -->
<dict>
    <key>big</key>
    <true/>
    <key>cellClass</key>
    <string>HBLinkTableCell</string>
    <key>height</key>
    <integer>64</integer>
    <key>label</key>
    <string>Example</string>
    <key>subtitle</key>
    <string>Visit our amazing website</string>
    <key>url</key>
    <string>http://example.com/</string>
</dict>

  isBig

Whether the cell is 64 pixels or more in height.

@property (nonatomic, readonly) BOOL isBig

Discussion

This is not set automatically; the specifier for the cell must set the big property to true (see examples above).

Declared In

HBLinkTableCell.h

  avatarView

The view containing the avatar image view.

@property (nonatomic, retain, readonly) UIView *avatarView

Declared In

HBLinkTableCell.h

  avatarImageView

The avatar image view.

@property (nonatomic, retain, readonly) UIImageView *avatarImageView

Declared In

HBLinkTableCell.h

  avatarImage

The image to display as the avatar, if enabled.

@property (nonatomic, retain) UIImage *avatarImage

Declared In

HBLinkTableCell.h