Conforms to NSObject
Declared in JSMessagesViewController.h

Tasks

  • – messageForRowAtIndexPath:

    Asks the data soruce for the message object to display for the row at the specified index path. The message text is displayed in the bubble at index path. The message date is displayed above the row at the specified index path. The message sender is displayed below the row at the specified index path.

    required method
  • – avatarImageViewForRowAtIndexPath:sender:

    Asks the data source for the imageView to display for the row at the specified index path with the given sender. The imageView must have its image property set.

    required method

Instance Methods

avatarImageViewForRowAtIndexPath:sender:

- (UIImageView *)avatarImageViewForRowAtIndexPath:(NSIndexPath *)indexPath sender:(NSString *)sender
Discussion

Asks the data source for the imageView to display for the row at the specified index path with the given sender. The imageView must have its image property set.

Parameters

indexPath

An index path locating a row in the table view.

sender

The name of the user who sent the message at indexPath.

Return Value

An image view specifying the avatar for the message at indexPath. This value may be nil.

Declared In

JSMessagesViewController.h

messageForRowAtIndexPath:

- (id<JSMessageData>)messageForRowAtIndexPath:(NSIndexPath *)indexPath
Discussion

Asks the data soruce for the message object to display for the row at the specified index path. The message text is displayed in the bubble at index path. The message date is displayed above the row at the specified index path. The message sender is displayed below the row at the specified index path.

Parameters

indexPath

An index path locating a row in the table view.

Return Value

An object that conforms to the JSMessageData protocol containing the message data. This value must not be nil.

Declared In

JSMessagesViewController.h