Declared in | GSFadeMessageView.h |
---|
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.
+ fadeMessageWithTitle:message:duration:
Create, return and set a message wich fade automatiquely. You can set Title, message and fade duration.
- show
Show the message to the user The message is displayed directly in the window.
- setTitle:
Set the message's title.
- setMessage:
Set the message.
- dismiss
Dissmis the message from the screen.
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
The message title
The message
The fade duration
A new instance autoreleased of GSFadeMessage
GSFadeMessageView
.h
Show the message to the user The message is displayed directly in the window.
- (void)show
GSFadeMessageView
.h
Set the message's title.
- (void)setTitle:(NSString
*)title
The message's title.
GSFadeMessageView
.h
Set the message.
- (void)setMessage:(NSString
*)message
The message wich will be displayed.
GSFadeMessageView
.h
Dissmis the message from the screen.
- (void)dismiss
GSFadeMessageView
.h
Last updated: 2010-8-12