项目中需要用到类似于Android的Toast的功能,所以现写了一个。

 

GitHub路径:

https://github.com/wsjisji/UIToast

 

使用方法如下:

1.下载 UIToast(.h and .m) 和 UIRotateViewController(.h and .m)两个类.

2.将下载的4个文件添加到你的xcode工程中.

3.使用如下代码显示Toast:

UIToast* toast = [[UIToast alloc] init];

[toast showToast:@"Enjoy the UIToast!" tiemInterval:4.0];

[toast release];

  

 

相关文章:

  • 2022-12-23
  • 2021-04-09
  • 2021-04-18
  • 2021-12-05
  • 2021-10-14
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2022-01-15
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-08-17
相关资源
相似解决方案