我移动了这一行:
@property (nonatomic, retain) IBOutlet UIWindow *window;
Run Code Online (Sandbox Code Playgroud)
进入我的应用程序委托中的类扩展,但现在收到此错误:
Illegal redeclaration of property in class extension 'AppDelegate' (attribute must be 'readwrite', while its primary must be 'readonly')
Run Code Online (Sandbox Code Playgroud)
文件中的完整代码.m如下所示:
@interface AppDelegate()
@property (nonatomic, retain) IBOutlet UIWindow *window;
@end
Run Code Online (Sandbox Code Playgroud)
有什么问题?
当我得到bash输出时,我得到了标准的2色屏幕。默认情况下,如果其中包含一些关键文本输出,有什么办法可以使我突出显示一行?
例如,如果其中包含单词“ FAIL”,则该行将显示为红色。
我已经读过这个https://unix.stackexchange.com/questions/46562/how-do-you-colorize-only-some-keywords-for-a-bash-script, 但我正在寻找比写简单的东西包装脚本,将来不可避免地需要调试。