HBTwitterCell Class Reference

Inherits from HBLinkTableCell : HBTintedTableCell : PSTableCell
Declared in HBTwitterCell.h

Overview

The HBTwitterCell class in CepheiPrefs displays a button containing a person’s name, along with their Twitter username and avatar. When tapped, a Twitter client installed on the user’s device or the Twitter website is opened to the person’s profile.

Specifier Parameters

big Optional. Whether to display the username below the name (true) or to the right of it (false). The default is false. If you set this to true, you should also set the cell's height to 56pt.
initials Optional. One or two characters to show instead of an avatar.
label Required. The name of the person.
showAvatar Optional. Whether to show the avatar of the user. The default is true.
user Required. The Twitter username of the person.

Example Usage

<!-- Standard size: -->
<dict>
    <key>cellClass</key>
    <string>HBTwitterCell</string>
    <key>label</key>
    <string>HASHBANG Productions</string>
    <key>user</key>
    <string>hbangws</string>
</dict>

<!-- Big size: -->
<dict>
    <key>big</key>
    <true/>
    <key>cellClass</key>
    <string>HBTwitterCell</string>
    <key>height</key>
    <integer>56</integer>
    <key>label</key>
    <string>HASHBANG Productions</string>
    <key>user</key>
    <string>hbangws</string>
</dict>

<!-- Without an avatar: -->
<dict>
    <key>cellClass</key>
    <string>HBTwitterCell</string>
    <key>label</key>
    <string>HASHBANG Productions</string>
    <key>showAvatar</key>
    <false/>
    <key>user</key>
    <string>hbangws</string>
</dict>