阅读背景:

如何在Swift中定义全局函数?

来源:互联网 

I wrote a simple function that displays an alert when it is called. I'd like to use this function in several viewControllers. Right now I have the same bit of code copy-pasted into the bottom of each viewController, but I can't help but think there's a better way.I wrote a simple function that displays an aler




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: