一些在某些时候有用的全局函数。我还想练习制作 Cocoapod。
要运行示例项目,先克隆仓库,然后从 Example 目录运行 pod install
。
#import <SMW/SMW.h>
// Like NSLog but better
SMWLog(args...)
// Check if the device is an ipad
BOOL deviceIsiPad();
// Remove any implicit animations
// Example: Change the frame of a CALayer without it animating
void unAnimateBlock(void (^block)(void));
// Log a CGRect
void printFrame(CGRect frame);
SMW 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:
pod "SMW"
Sam Meech-Ward, [邮箱地址保护]
SMW 可在 MIT 许可协议下使用。有关更多信息,请参阅 LICENSE 文件。