Untitled Reference Library

GSFadeMessageView Class Reference

GSFadeMessageView Class Reference

Declared in GSFadeMessageView.h

Overview

The GSFadeMessageView class provide a nice way to display a simple message to the User. The aim is only inform briefly the User, you have very low space to write the message so it must be short. You can add a Title to your message thank to the title property. The displayed message can be remove by call the dismiss method, this make the message desapear with fade effect. You can choose the fade duration with the fadeDuration property. An easy way to use this class is to create the message with the fadeMessageWithTitle:message:duration, this will automatiquely fade the message and dealloc it with the autorelease pool.

Tasks

Class Methods

fadeMessageWithTitle:message:duration:

Create, return and set a message wich fade automatiquely. You can set Title, message and fade duration.

+ (id)fadeMessageWithTitle:(NSString *)title message:(NSString *)message duration:(NSInteger)duration
Parameters
title

The message title

message

The message

duration

The fade duration

Return Value

A new instance autoreleased of GSFadeMessage

Declared In
GSFadeMessageView.h

Instance Methods

show

Show the message to the user The message is displayed directly in the window.

- (void)show
Declared In
GSFadeMessageView.h

setTitle:

Set the message's title.

- (void)setTitle:(NSString *)title
Parameters
title

The message's title.

Declared In
GSFadeMessageView.h

setMessage:

Set the message.

- (void)setMessage:(NSString *)message
Parameters
message

The message wich will be displayed.

Declared In
GSFadeMessageView.h

dismiss

Dissmis the message from the screen.

- (void)dismiss
Declared In
GSFadeMessageView.h

Last updated: 2010-8-12