-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
433 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+43.7 KB
.../project.xcworkspace/xcuserdata/niukouruanjian.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...lite.xcodeproj/xcuserdata/niukouruanjian.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "E4B88C6F-06F9-4D47-ABC8-616245B2B7B9" | ||
type = "1" | ||
version = "2.0"> | ||
</Bucket> |
14 changes: 14 additions & 0 deletions
14
...nglite.xcodeproj/xcuserdata/niukouruanjian.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>Paintinglite.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
Paintinglite/Paintinglite/Paintinglite/Helper/PaintingliteWarningHelper.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// PaintingliteWarningHelper.h | ||
// Paintinglite | ||
// | ||
// Created by CreaterOS on 2021/3/3. | ||
// Copyright © 2021 Bryant Reyn. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface PaintingliteWarningHelper : NSObject | ||
|
||
/// 警告 | ||
/// @param reason 原因 | ||
/// @param time 触发时间 | ||
/// @param solve 解决方案 | ||
/// @param args 其他参数 | ||
+ (void)warningReason:(NSString *)reason time:(NSDate *)time solve:(NSString *)solve args:(id __nullable)args; | ||
|
||
/// 警告 | ||
/// @param reason 原因 | ||
/// @param session 会话 | ||
/// @param time 触发时间 | ||
/// @param solve 解决方案 | ||
/// @param args 其他参数 | ||
+ (void)warningReason:(NSString *)reason session:(NSString *)session time:(NSDate *)time solve:(NSString *)solve args:(id)args; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
46 changes: 46 additions & 0 deletions
46
Paintinglite/Paintinglite/Paintinglite/Helper/PaintingliteWarningHelper.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// PaintingliteWarningHelper.m | ||
// Paintinglite | ||
// | ||
// Created by CreaterOS on 2021/3/3. | ||
// Copyright © 2021 Bryant Reyn. All rights reserved. | ||
// | ||
|
||
#import "PaintingliteWarningHelper.h" | ||
|
||
@implementation PaintingliteWarningHelper | ||
|
||
+ (void)warningReason:(NSString *)reason time:(NSDate *)time solve:(NSString *)solve args:(id)args { | ||
#if DEBUG | ||
/// 调试状态下进行输出 | ||
NSLog(@"Reson: %@",NSLocalizedString(reason, nil)); | ||
NSLog(@"Time: %@",time); | ||
NSLog(@"Solve: %@",NSLocalizedString(solve, nil)); | ||
|
||
if (args != NULL && args != (id)[NSNull null]) { | ||
NSError *error = nil; | ||
NSData *data = [NSJSONSerialization dataWithJSONObject:args options:NSJSONWritingSortedKeys error:&error]; | ||
NSString *argStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; | ||
NSLog(@"Args: %@",argStr); | ||
} | ||
#endif | ||
} | ||
|
||
+ (void)warningReason:(NSString *)reason session:(NSString *)session time:(NSDate *)time solve:(NSString *)solve args:(id)args { | ||
#if DEBUG | ||
/// 调试状态下进行输出 | ||
NSLog(@"Reson: %@",NSLocalizedString(reason, nil)); | ||
NSLog(@"Session: %@",NSLocalizedString(session, nil)); | ||
NSLog(@"Time: %@",time); | ||
NSLog(@"Solve: %@",NSLocalizedString(solve, nil)); | ||
|
||
if (args != NULL && args != (id)[NSNull null]) { | ||
NSError *error = nil; | ||
NSData *data = [NSJSONSerialization dataWithJSONObject:args options:NSJSONWritingSortedKeys error:&error]; | ||
NSString *argStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; | ||
NSLog(@"Args: %@",argStr); | ||
} | ||
#endif | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.