Skip to content

Commit abd58a5

Browse files
author
何天从
committed
update Version 3.0.0
1 parent 9a1f91d commit abd58a5

12 files changed

+61
-39
lines changed
31.6 KB
Loading

SecurityNote/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"scale" : "3x"
1414
},
1515
{
16-
"idiom" : "iphone",
1716
"size" : "29x29",
17+
"idiom" : "iphone",
1818
"filename" : "Icon-Small.png",
1919
"scale" : "1x"
2020
},
@@ -72,8 +72,8 @@
7272
"scale" : "1x"
7373
},
7474
{
75-
"idiom" : "ipad",
7675
"size" : "20x20",
76+
"idiom" : "ipad",
7777
"filename" : "Icon-Spotlight-40.png",
7878
"scale" : "2x"
7979
},
@@ -90,14 +90,14 @@
9090
"scale" : "2x"
9191
},
9292
{
93-
"idiom" : "ipad",
9493
"size" : "40x40",
94+
"idiom" : "ipad",
9595
"filename" : "Icon-Spotlight-40.png",
9696
"scale" : "1x"
9797
},
9898
{
99-
"idiom" : "ipad",
10099
"size" : "40x40",
100+
"idiom" : "ipad",
101101
"filename" : "Icon-Spotlight-40@2x.png",
102102
"scale" : "2x"
103103
},
@@ -143,6 +143,12 @@
143143
"filename" : "Icon-iPadPro@2x.png",
144144
"scale" : "2x"
145145
},
146+
{
147+
"size" : "1024x1024",
148+
"idiom" : "ios-marketing",
149+
"filename" : "1024x1024bb.jpg",
150+
"scale" : "1x"
151+
},
146152
{
147153
"idiom" : "car",
148154
"size" : "60x60",

SecurityNote/SecurityNote-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>2.1.0</string>
20+
<string>3.0.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>2017.05.10</string>
24+
<string>2017.10.15</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSAppTransportSecurity</key>

SecurityNote/TCAbutSNoteViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ @implementation TCAbutSNoteViewController
1717
- (void)viewDidLoad
1818
{
1919
[super viewDidLoad];
20-
2120

2221
self.view.backgroundColor = [UIColor whiteColor];
23-
22+
if (@available(iOS 11.0, *)) {
23+
self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
24+
}
2425
self.title = @"关于";
2526

2627
UIImageView * logoV = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"logoabout.png"]];
2728
logoV.center = CGPointMake(self.view.frame.size.width * 0.5, self.view.frame.size.height * 0.3);
2829
logoV.bounds = CGRectMake(0, 0, 120, 120);
30+
logoV.layer.cornerRadius = 30;
31+
logoV.layer.masksToBounds = YES;
2932
[self.view addSubview:logoV];
3033

3134

SecurityNote/TCAppDelegate.m

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -71,36 +71,21 @@ - (void)startBaiduMobStat {
7171
statTracker.shortAppVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
7272
// statTracker.enableDebugOn = YES;
7373
[statTracker startWithAppId:@"96b7742677"]; // 设置您在mtj网站上添加的app的appkey,此处AppId即为应用的appKey
74-
// 其它事件
74+
#if DEBUG
75+
NSLog(@"Debug Model");
76+
#else
77+
NSDateFormatter * df = [[NSDateFormatter alloc] init];
78+
df.locale = [NSLocale currentLocale];
79+
df.dateFormat = @"yyyy-MM-dd HH:mm:ss";
80+
NSString *currentDate = [df stringFromDate:[NSDate new]];
81+
82+
// 自定义事件
7583
[statTracker logEvent:@"usermodelName" eventLabel:[DHDeviceUtil deviceModelName]];
76-
[statTracker logEvent:@"systemVersion" eventLabel:[UIDevice currentDevice].systemVersion];
77-
}
78-
79-
- (void)applicationWillResignActive:(UIApplication *)application
80-
{
81-
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
82-
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
83-
}
84-
85-
- (void)applicationDidEnterBackground:(UIApplication *)application
86-
{
87-
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
88-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
89-
}
90-
91-
- (void)applicationWillEnterForeground:(UIApplication *)application
92-
{
93-
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
94-
}
95-
96-
- (void)applicationDidBecomeActive:(UIApplication *)application
97-
{
98-
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
99-
}
100-
101-
- (void)applicationWillTerminate:(UIApplication *)application
102-
{
103-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
84+
[statTracker logEvent:@"systemVersion" eventLabel:[[UIDevice currentDevice] systemVersion]];
85+
[statTracker logEvent:@"Devices" eventLabel:[[UIDevice currentDevice] name]];
86+
[statTracker logEvent:@"DateAndDeviceName" eventLabel:[NSString stringWithFormat:@"%@ %@", currentDate, [[UIDevice currentDevice] name]]];
87+
[statTracker logEvent:@"DateSystemVersion" eventLabel:[NSString stringWithFormat:@"%@ %@", currentDate, [[UIDevice currentDevice] systemVersion]]];
88+
#endif
10489
}
10590

10691
@end

SecurityNote/TCDiaryViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ - (void)viewDidLoad
3636
{
3737
[super viewDidLoad];
3838

39+
if (@available(iOS 11.0, *)) {
40+
self.navigationController.navigationBar.prefersLargeTitles = YES;
41+
self.navigationController.navigationBar.largeTitleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor]};
42+
}
3943

4044
UITableView * dairyTab = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width,self.view.frame.size.height) style:UITableViewStylePlain];
4145
dairyTab.separatorColor = [UIColor colorWithRed:0/255.0 green:122/255.0 blue:252/255.0 alpha:1];

SecurityNote/TCEditDiaryView.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ - (void)viewDidLoad
105105
[super viewDidLoad];
106106

107107
self.view.backgroundColor = [UIColor whiteColor];
108+
109+
if (@available(iOS 11.0, *)) {
110+
self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
111+
}
108112
}
109113

110114

@@ -316,4 +320,4 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
316320

317321

318322

319-
@end
323+
@end

SecurityNote/TCEditMemoViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ - (void)viewDidLoad
136136
[super viewDidLoad];
137137

138138
self.view.backgroundColor = [UIColor whiteColor];
139+
140+
if (@available(iOS 11.0, *)) {
141+
self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
142+
}
139143
}
140144

141145

SecurityNote/TCHelpViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ - (void)viewDidLoad {
1818
[super viewDidLoad];
1919

2020
self.view.backgroundColor = [UIColor whiteColor];
21+
if (@available(iOS 11.0, *)) {
22+
self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
23+
}
2124

2225
self.title = @"帮助";
2326

SecurityNote/TCMeController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ - (void)viewDidLoad
4646
{
4747
[super viewDidLoad];
4848

49-
49+
if (@available(iOS 11.0, *)) {
50+
self.navigationController.navigationBar.prefersLargeTitles = YES;
51+
self.navigationController.navigationBar.largeTitleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor]};
52+
}
53+
5054
//设置Table属性
5155
//self.tableView.separatorColor = TCCoror(3, 123, 252);
5256

0 commit comments

Comments
 (0)