/METoast

METoast is a view to show toast message.

Primary LanguageObjective-C

METoast

METoast is a view to show toast message. It's a queue based FIFO toast.

METoast

Usage

Show a toast message

[METoast toastWithMessage:@"On the top of the screen!"];

Configure a toast

METoastAttribute *attr = [[METoastAttribute alloc] init];
attr.location = METoastLocationMiddle;
[METoast setToastAttribute:attr];
[METoast toastWithMessage:@"On the middle of the screen!"];
[attr release];

Complete block

[METoast toastWithMessage:@"Hello James"
    	andCompleteBlock:^{
    		// TODO: things to do
        }];