首页 > 代码库 > ToastDemo

ToastDemo

效果图:

工程图:

注意:需要加入的第三方Toast.

RootViewController.m

//点击任何处,弹出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{    [self.view makeToast:@"This is a piece of toast with an image."                duration:3.0                position:@"center"                   image:[UIImage imageNamed:@"toast.png"]];}

 

源代码地址:http://url.cn/T03dff

ToastDemo