Skip to content

Commit cde202a

Browse files
committed
UI fix
1 parent ea1da52 commit cde202a

14 files changed

+16
-6
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@
12271227
B14689C21EE100B200B01371 /* vip_4_75@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689B21EE100B200B01371 /* vip_4_75@2x.png */; };
12281228
B14689C31EE100B200B01371 /* vip_4_75@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689B31EE100B200B01371 /* vip_4_75@3x.png */; };
12291229
B1816063202063440022B4C6 /* EATerminalViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B1816062202063440022B4C6 /* EATerminalViewController.m */; };
1230+
B184166920513CA100207666 /* topic_add_watcher_btn@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B184166720513CA000207666 /* topic_add_watcher_btn@3x.png */; };
1231+
B184166A20513CA100207666 /* tweet_comment_btn@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B184166820513CA000207666 /* tweet_comment_btn@3x.png */; };
12301232
B1890C142015D71E00F52ABA /* wiki.html in Resources */ = {isa = PBXBuildFile; fileRef = B1890C132015D71E00F52ABA /* wiki.html */; };
12311233
B1890C292015D82600F52ABA /* wiki_menu_0@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1890C1E2015D82600F52ABA /* wiki_menu_0@2x.png */; };
12321234
B1890C2A2015D82600F52ABA /* wiki_menu_2@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B1890C1F2015D82600F52ABA /* wiki_menu_2@3x.png */; };
@@ -3289,6 +3291,8 @@
32893291
B14689B31EE100B200B01371 /* vip_4_75@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_4_75@3x.png"; sourceTree = "<group>"; };
32903292
B1816061202063440022B4C6 /* EATerminalViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EATerminalViewController.h; sourceTree = "<group>"; };
32913293
B1816062202063440022B4C6 /* EATerminalViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EATerminalViewController.m; sourceTree = "<group>"; };
3294+
B184166720513CA000207666 /* topic_add_watcher_btn@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "topic_add_watcher_btn@3x.png"; sourceTree = "<group>"; };
3295+
B184166820513CA000207666 /* tweet_comment_btn@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tweet_comment_btn@3x.png"; sourceTree = "<group>"; };
32923296
B1890C132015D71E00F52ABA /* wiki.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = wiki.html; sourceTree = "<group>"; };
32933297
B1890C1E2015D82600F52ABA /* wiki_menu_0@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "wiki_menu_0@2x.png"; sourceTree = "<group>"; };
32943298
B1890C1F2015D82600F52ABA /* wiki_menu_2@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "wiki_menu_2@3x.png"; sourceTree = "<group>"; };
@@ -5737,6 +5741,8 @@
57375741
4E1A228C1AB19D1F00CFC14F /* git_btn_icons */,
57385742
7E8E59781B6F91C40083CA02 /* bubble */,
57395743
8EA6CF5F19E240C40076D59C /* btn_delete_tweetimage@2x.png */,
5744+
B184166720513CA000207666 /* topic_add_watcher_btn@3x.png */,
5745+
B184166820513CA000207666 /* tweet_comment_btn@3x.png */,
57405746
B1C871871EB1E608003DACF0 /* btn_setFrequent@3x.png */,
57415747
B1C871881EB1E608003DACF0 /* cell_checkmark@3x.png */,
57425748
B1C871891EB1E608003DACF0 /* icon_add_comment@3x.png */,
@@ -7521,6 +7527,7 @@
75217527
B1AB5CB8202D7D500075A669 /* button_file_download_unable@3x.png in Resources */,
75227528
4E80E95C1E02911E00DE1BC6 /* search_icon_task@2x.png in Resources */,
75237529
D0C4480D1C02DCAC00DC1C4B /* moreBtn_Nav@3x.png in Resources */,
7530+
B184166A20513CA100207666 /* tweet_comment_btn@3x.png in Resources */,
75247531
B14689B41EE100B200B01371 /* vip_3_30@2x.png in Resources */,
75257532
B1280D01200EFEA400DEDF78 /* PR_del_label@3x.png in Resources */,
75267533
4E9423EC1E69401B0095F1CD /* blankpage_image_Team@2x.png in Resources */,
@@ -7717,6 +7724,7 @@
77177724
4E6383EA1B32791600D98648 /* checkbox_unchecked@2x.png in Resources */,
77187725
B1BCB8801FCD006C0098B87B /* icon_file_psd_big@2x.png in Resources */,
77197726
8EA6D19119E240C40076D59C /* timeline_icon_read@2x.png in Resources */,
7727+
B184166920513CA100207666 /* topic_add_watcher_btn@3x.png in Resources */,
77207728
8E97CEB21A0C7E26006F9AD7 /* coding_emoji_27@2x.png in Resources */,
77217729
B12B64751FFB61AD00ACFDCC /* QBImagePicker.strings in Resources */,
77227730
B1BCB87E1FCD006C0098B87B /* icon_file_zip_big@2x.png in Resources */,

Coding_iOS/.DS_Store

0 Bytes
Binary file not shown.

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</dict>
3838
</array>
3939
<key>CFBundleVersion</key>
40-
<string>5.1.201803081630</string>
40+
<string>5.1.201803081800</string>
4141
<key>ITSAppUsesNonExemptEncryption</key>
4242
<false/>
4343
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/TopicDetailViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ - (instancetype)init
559559
}
560560
if (!_addBtn) {
561561
_addBtn = [UIButton buttonWithType:UIButtonTypeCustom];
562+
_addBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
562563
[_addBtn setImage:[UIImage imageNamed:@"topic_add_watcher_btn"] forState:UIControlStateNormal];
563564
[_addBtn bk_addEventHandler:^(id sender) {
564565
if (weakSelf.goToUserBlock) {
@@ -584,6 +585,7 @@ - (instancetype)init
584585
}
585586
if (!_commentBtn) {
586587
_commentBtn = [UIButton buttonWithType:UIButtonTypeCustom];
588+
_commentBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
587589
[_commentBtn setImage:[UIImage imageNamed:@"tweet_comment_btn"] forState:UIControlStateNormal];
588590
[_commentBtn bk_addEventHandler:^(id sender) {
589591
if (weakSelf.commentBlock) {

Coding_iOS/Images.xcassets/userInfo/user_info_addAttention.imageset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
},
77
{
88
"idiom" : "universal",
9-
"filename" : "添加关注@2x.png",
9+
"filename" : "follow@2x.png",
1010
"scale" : "2x"
1111
},
1212
{
1313
"idiom" : "universal",
14-
"filename" : "添加关注@3x.png",
14+
"filename" : "follow@3x.png",
1515
"scale" : "3x"
1616
}
1717
],
Loading
Loading
-2.35 KB
Loading
478 Bytes
Loading
-1.04 KB
Loading
1011 Bytes
Loading

Coding_iOS/Models/User.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ - (NSString *)pinyinName{
174174

175175
- (NSString *)vipName{
176176
NSDictionary *vipDict = @{@1: @"普通会员",
177-
@2: @"白银会员",
178-
@3: @"黄金会员",
177+
@2: @"银牌会员",
178+
@3: @"金牌会员",
179179
@4: @"钻石会员",
180180
};
181181
return vipDict[_vip];
@@ -230,7 +230,7 @@ - (BOOL)canUpgradeByCompleteUserInfo{
230230

231231
- (BOOL)willExpired{
232232
NSTimeInterval timeInterval = [self.vip_expired_at timeIntervalSinceDate:[NSDate date]];
233-
return (self.vip.integerValue >= 3 && (timeInterval < 3 * 24 * 60 * 60 && timeInterval >= 0));
233+
return (self.vip.integerValue >= 3 && (timeInterval < 3 * 24 * 60 * 60));
234234
}
235235

236236

0 commit comments

Comments
 (0)