Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83cf943

Browse files
任务、讨论的「标签」 - 颜色管理
1 parent a9b1f1e commit 83cf943

16 files changed

+317
-31
lines changed

‎Coding_iOS.xcodeproj/project.pbxproj‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,15 @@
470470
4EB52F111C74691B00B5EBEA /* password_unlook@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F0D1C74691B00B5EBEA /* password_unlook@2x.png */; };
471471
4EB52F121C74691B00B5EBEA /* password_unlook@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F0E1C74691B00B5EBEA /* password_unlook@3x.png */; };
472472
4EB52F151C7599FC00B5EBEA /* ActivateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB52F141C7599FC00B5EBEA /* ActivateViewController.m */; };
473+
4EB52F1D1C76BA3B00B5EBEA /* tag_button_add@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F171C76BA3B00B5EBEA /* tag_button_add@2x.png */; };
474+
4EB52F1E1C76BA3B00B5EBEA /* tag_button_add@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F181C76BA3B00B5EBEA /* tag_button_add@3x.png */; };
475+
4EB52F1F1C76BA3B00B5EBEA /* tag_button_editColor@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F191C76BA3B00B5EBEA /* tag_button_editColor@2x.png */; };
476+
4EB52F201C76BA3B00B5EBEA /* tag_button_editColor@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F1A1C76BA3B00B5EBEA /* tag_button_editColor@3x.png */; };
477+
4EB52F211C76BA3B00B5EBEA /* tag_button_randomColor@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F1B1C76BA3B00B5EBEA /* tag_button_randomColor@2x.png */; };
478+
4EB52F221C76BA3B00B5EBEA /* tag_button_randomColor@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4EB52F1C1C76BA3B00B5EBEA /* tag_button_randomColor@3x.png */; };
479+
4EB52F251C76C16300B5EBEA /* EditColorViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB52F241C76C16300B5EBEA /* EditColorViewController.m */; };
480+
4EB52F281C76ED4A00B5EBEA /* TagColorEditCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB52F271C76ED4A00B5EBEA /* TagColorEditCell.m */; };
481+
4EB52F2B1C76ED7000B5EBEA /* TagColorDisplayCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB52F2A1C76ED7000B5EBEA /* TagColorDisplayCell.m */; };
473482
4EB5A9421BF1DB4600C23AC3 /* libSocialSinaSSO.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EB5A9341BF1DB4600C23AC3 /* libSocialSinaSSO.a */; };
474483
4EB5A9431BF1DB4600C23AC3 /* libWeiboSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EB5A9351BF1DB4600C23AC3 /* libWeiboSDK.a */; };
475484
4EB5A9441BF1DB4600C23AC3 /* WeiboSDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 4EB5A93F1BF1DB4600C23AC3 /* WeiboSDK.bundle */; };
@@ -1752,6 +1761,18 @@
17521761
4EB52F0E1C74691B00B5EBEA /* password_unlook@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "password_unlook@3x.png"; sourceTree = "<group>"; };
17531762
4EB52F131C7599FC00B5EBEA /* ActivateViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ActivateViewController.h; sourceTree = "<group>"; };
17541763
4EB52F141C7599FC00B5EBEA /* ActivateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ActivateViewController.m; sourceTree = "<group>"; };
1764+
4EB52F171C76BA3B00B5EBEA /* tag_button_add@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_add@2x.png"; sourceTree = "<group>"; };
1765+
4EB52F181C76BA3B00B5EBEA /* tag_button_add@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_add@3x.png"; sourceTree = "<group>"; };
1766+
4EB52F191C76BA3B00B5EBEA /* tag_button_editColor@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_editColor@2x.png"; sourceTree = "<group>"; };
1767+
4EB52F1A1C76BA3B00B5EBEA /* tag_button_editColor@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_editColor@3x.png"; sourceTree = "<group>"; };
1768+
4EB52F1B1C76BA3B00B5EBEA /* tag_button_randomColor@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_randomColor@2x.png"; sourceTree = "<group>"; };
1769+
4EB52F1C1C76BA3B00B5EBEA /* tag_button_randomColor@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tag_button_randomColor@3x.png"; sourceTree = "<group>"; };
1770+
4EB52F231C76C16300B5EBEA /* EditColorViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditColorViewController.h; sourceTree = "<group>"; };
1771+
4EB52F241C76C16300B5EBEA /* EditColorViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditColorViewController.m; sourceTree = "<group>"; };
1772+
4EB52F261C76ED4A00B5EBEA /* TagColorEditCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagColorEditCell.h; sourceTree = "<group>"; };
1773+
4EB52F271C76ED4A00B5EBEA /* TagColorEditCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TagColorEditCell.m; sourceTree = "<group>"; };
1774+
4EB52F291C76ED7000B5EBEA /* TagColorDisplayCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagColorDisplayCell.h; sourceTree = "<group>"; };
1775+
4EB52F2A1C76ED7000B5EBEA /* TagColorDisplayCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TagColorDisplayCell.m; sourceTree = "<group>"; };
17551776
4EB5A9341BF1DB4600C23AC3 /* libSocialSinaSSO.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSocialSinaSSO.a; sourceTree = "<group>"; };
17561777
4EB5A9351BF1DB4600C23AC3 /* libWeiboSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libWeiboSDK.a; sourceTree = "<group>"; };
17571778
4EB5A9361BF1DB4600C23AC3 /* UMSocialSinaSSOHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UMSocialSinaSSOHandler.h; sourceTree = "<group>"; };
@@ -3509,6 +3530,19 @@
35093530
path = password;
35103531
sourceTree = "<group>";
35113532
};
3533+
4EB52F161C76BA3B00B5EBEA /* tag_button */ = {
3534+
isa = PBXGroup;
3535+
children = (
3536+
4EB52F171C76BA3B00B5EBEA /* tag_button_add@2x.png */,
3537+
4EB52F181C76BA3B00B5EBEA /* tag_button_add@3x.png */,
3538+
4EB52F191C76BA3B00B5EBEA /* tag_button_editColor@2x.png */,
3539+
4EB52F1A1C76BA3B00B5EBEA /* tag_button_editColor@3x.png */,
3540+
4EB52F1B1C76BA3B00B5EBEA /* tag_button_randomColor@2x.png */,
3541+
4EB52F1C1C76BA3B00B5EBEA /* tag_button_randomColor@3x.png */,
3542+
);
3543+
path = tag_button;
3544+
sourceTree = "<group>";
3545+
};
35123546
4EB5A9331BF1DB4600C23AC3 /* SinaSSO */ = {
35133547
isa = PBXGroup;
35143548
children = (
@@ -4216,6 +4250,8 @@
42164250
8EA6CF1F19E240C40076D59C /* EditTopicViewController.m */,
42174251
3A3878351AE293D50078D5DE /* EditLabelViewController.h */,
42184252
3A3878361AE293D50078D5DE /* EditLabelViewController.m */,
4253+
4EB52F231C76C16300B5EBEA /* EditColorViewController.h */,
4254+
4EB52F241C76C16300B5EBEA /* EditColorViewController.m */,
42194255
3A3878381AE2949E0078D5DE /* ResetLabelViewController.h */,
42204256
3A3878391AE2949E0078D5DE /* ResetLabelViewController.m */,
42214257
8EA6CF4F19E240C40076D59C /* TopicDetailViewController.h */,
@@ -4374,6 +4410,7 @@
43744410
8EA6CF5D19E240C40076D59C /* Images */ = {
43754411
isa = PBXGroup;
43764412
children = (
4413+
4EB52F161C76BA3B00B5EBEA /* tag_button */,
43774414
4EB52F0A1C74691B00B5EBEA /* password */,
43784415
4EAECBBB1C44CB860096CA74 /* member_cell_edit */,
43794416
4E2F6A651C43CA4B00A25502 /* member_type */,
@@ -5181,6 +5218,10 @@
51815218
4ED618191C3A72AE0017946C /* ShopMutileValueCell.h */,
51825219
4ED6181A1C3A72AE0017946C /* ShopMutileValueCell.m */,
51835220
4ED6181C1C3A72CF0017946C /* ShopMutileValueCell.xib */,
5221+
4EB52F261C76ED4A00B5EBEA /* TagColorEditCell.h */,
5222+
4EB52F271C76ED4A00B5EBEA /* TagColorEditCell.m */,
5223+
4EB52F291C76ED7000B5EBEA /* TagColorDisplayCell.h */,
5224+
4EB52F2A1C76ED7000B5EBEA /* TagColorDisplayCell.m */,
51845225
);
51855226
path = Cell;
51865227
sourceTree = "<group>";
@@ -5332,6 +5373,7 @@
53325373
4EACB43F1A2C448F0097ABB3 /* button_file_createFolder_unable@2x.png in Resources */,
53335374
4EED9DCD1B539366000E5827 /* taskProject@2x.png in Resources */,
53345375
4EF17ED91B3C3112003CDD2D /* intro_icon_5@2x.png in Resources */,
5376+
4EB52F221C76BA3B00B5EBEA /* tag_button_randomColor@3x.png in Resources */,
53355377
4E6383B81B32640900D98648 /* messageComment@2x.png in Resources */,
53365378
8EA6D1A319E240C40076D59C /* tweet_comment_btn@2x.png in Resources */,
53375379
D09E6ACE1BF9CCCF009D37F8 /* fliter_square@2x.png in Resources */,
@@ -5373,6 +5415,7 @@
53735415
4E4D6AC21B252CD400FD2E49 /* icon_code_tree@2x.png in Resources */,
53745416
8E97CEB01A0C7E26006F9AD7 /* coding_emoji_25@2x.png in Resources */,
53755417
7E335D9D1B6F5E94003D0F3D /* keyboard_arrow_down@2x.png in Resources */,
5418+
4EB52F1D1C76BA3B00B5EBEA /* tag_button_add@2x.png in Resources */,
53765419
4EF17ED71B3C3112003CDD2D /* intro_icon_4@2x.png in Resources */,
53775420
4E6384031B33C8E900D98648 /* task_activity_icon_create@2x.png in Resources */,
53785421
4EACB4401A2C448F0097ABB3 /* button_file_download_unable@2x.png in Resources */,
@@ -5535,6 +5578,7 @@
55355578
D0C447A81C02A3C700DC1C4B /* project_selected@2x.png in Resources */,
55365579
8EA6D19C19E240C40076D59C /* tipIcon_QcTask@2x.png in Resources */,
55375580
4E095A841B6B24DE008DC439 /* time_clock_icon@2x.png in Resources */,
5581+
4EB52F211C76BA3B00B5EBEA /* tag_button_randomColor@2x.png in Resources */,
55385582
4E6383FC1B33C18700D98648 /* task_activity_icon_reassign@2x.png in Resources */,
55395583
4E6383B71B32640900D98648 /* messageAT@2x.png in Resources */,
55405584
D0C447AC1C02A3C700DC1C4B /* tweet_selected@2x.png in Resources */,
@@ -5555,6 +5599,7 @@
55555599
4EE1A23E1B5F3834004284F1 /* project_tag_icon@2x.png in Resources */,
55565600
8EA6D19319E240C40076D59C /* timeline_line_read@2x.png in Resources */,
55575601
D09E6AC61BF84AF9009D37F8 /* git_icon_fork@2x.png in Resources */,
5602+
4EB52F1E1C76BA3B00B5EBEA /* tag_button_add@3x.png in Resources */,
55585603
4EF17EE31B3C3112003CDD2D /* intro_tip_3@3x.png in Resources */,
55595604
4E94C4EF1B4B73BB00EB668A /* scan_line@2x.png in Resources */,
55605605
4E96E7DF1A1B537E0037C098 /* icon_file_unknown@2x.png in Resources */,
@@ -5613,6 +5658,7 @@
56135658
4EF17EDC1B3C3112003CDD2D /* intro_tip_0@2x.png in Resources */,
56145659
8EA6D19719E240C40076D59C /* tipIcon_Project@2x.png in Resources */,
56155660
D0C447CF1C02DB6700DC1C4B /* pop_Task@3x.png in Resources */,
5661+
4EB52F1F1C76BA3B00B5EBEA /* tag_button_editColor@2x.png in Resources */,
56165662
4EF17ED31B3C3112003CDD2D /* intro_icon_2@2x.png in Resources */,
56175663
D0C448091C02DCAC00DC1C4B /* addUserBtn_Nav@3x.png in Resources */,
56185664
D0C447F51C02DCA200DC1C4B /* addUserBtn_Nav@2x.png in Resources */,
@@ -5788,6 +5834,7 @@
57885834
4E6384001B33C18700D98648 /* task_activity_icon_update_description@2x.png in Resources */,
57895835
D09E6AC21BF84AC5009D37F8 /* git_icon_star@2x.png in Resources */,
57905836
4E095A831B6B24DE008DC439 /* task_description_icon@2x.png in Resources */,
5837+
4EB52F201C76BA3B00B5EBEA /* tag_button_editColor@3x.png in Resources */,
57915838
D0C447F91C02DCA200DC1C4B /* moreBtn_Nav@2x.png in Resources */,
57925839
4EFE8DB91B3A5727004B7559 /* Launch Screen.xib in Resources */,
57935840
4EF17ECC1B3C3112003CDD2D /* intro_dot_selected@3x.png in Resources */,
@@ -6167,6 +6214,7 @@
61676214
4E2906A21A403B7D008A5B97 /* FileDownloadView.m in Sources */,
61686215
4E6BA2DC1A1EE6AF005FD721 /* AFNetworkReachabilityManager.m in Sources */,
61696216
D09E6AD11BF9D999009D37F8 /* SearchViewController.m in Sources */,
6217+
4EB52F251C76C16300B5EBEA /* EditColorViewController.m in Sources */,
61706218
8E59F0E31A0098BA009A905F /* UIScrollView+SVPullToRefresh.m in Sources */,
61716219
4E8D5D5B1B45295D00B70936 /* NSData+OTPBase32Encoding.m in Sources */,
61726220
4E8AF7861A53D69F00CDC3AE /* StartImagesManager.m in Sources */,
@@ -6264,6 +6312,7 @@
62646312
D066BB3D1BF38844005AB5D6 /* ProjectAboutMeListCell.m in Sources */,
62656313
8BDF9AA61B7456060093BF2C /* HotTopicBannerView.m in Sources */,
62666314
8EA6D12E19E240C40076D59C /* EditTaskViewController.m in Sources */,
6315+
4EB52F2B1C76ED7000B5EBEA /* TagColorDisplayCell.m in Sources */,
62676316
8EA6D1BC19E240C40076D59C /* ProjectTopics.m in Sources */,
62686317
4EE1A2311B5D02CA004284F1 /* ProjectTasksView.m in Sources */,
62696318
8EA6D1C919E240C40076D59C /* UICustomCollectionView.m in Sources */,
@@ -6331,6 +6380,7 @@
63316380
8EF643CF19FF7E2900F7EEB0 /* TweetDetailCommentCell.m in Sources */,
63326381
4E4D6A8E1B1D5B9A00FD2E49 /* MRPRBaseInfo.m in Sources */,
63336382
7EB02FF31B6D111300D2166C /* AudioRecordView.m in Sources */,
6383+
4EB52F281C76ED4A00B5EBEA /* TagColorEditCell.m in Sources */,
63346384
4E93F2441B85C4C300017916 /* FileInfoViewController.m in Sources */,
63356385
4E4D6A9A1B1D893500FD2E49 /* CommitInfo.m in Sources */,
63366386
4E38CF5F1A7A28AF005536C0 /* CodeBranchTagButton.m in Sources */,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// EditColorViewController.h
3+
// Coding_iOS
4+
//
5+
// Created by Ease on 16/2/19.
6+
// Copyright © 2016年 Coding. All rights reserved.
7+
//
8+
9+
#import "BaseViewController.h"
10+
#import "ProjectTag.h"
11+
12+
@interface EditColorViewController : BaseViewController
13+
@property (strong, nonatomic) ProjectTag *curTag;
14+
@end
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
//
2+
// EditColorViewController.m
3+
// Coding_iOS
4+
//
5+
// Created by Ease on 16/2/19.
6+
// Copyright © 2016年 Coding. All rights reserved.
7+
//
8+
9+
#import "EditColorViewController.h"
10+
#import "TPKeyboardAvoidingTableView.h"
11+
#import "TagColorEditCell.h"
12+
#import "TagColorDisplayCell.h"
13+
14+
@interface EditColorViewController ()<UITableViewDataSource, UITableViewDelegate>
15+
@property (strong, nonatomic) TPKeyboardAvoidingTableView *myTableView;
16+
@property (strong, nonatomic) NSArray *colorList;
17+
@end
18+
19+
@implementation EditColorViewController
20+
21+
- (void)viewDidLoad {
22+
[super viewDidLoad];
23+
// Do any additional setup after loading the view.
24+
self.title = @"标签颜色";
25+
_colorList = @[@{@"name": @"灰色",
26+
@"value": @"#90A4AE"},
27+
@{@"name": @"黄色",
28+
@"value": @"#FFC107"},
29+
@{@"name": @"红色",
30+
@"value": @"#FF5722"},
31+
@{@"name": @"绿色",
32+
@"value": @"#4CAF50"},
33+
@{@"name": @"蓝色",
34+
@"value": @"#03A9F4"},
35+
@{@"name": @"紫色",
36+
@"value": @"#AB44BC"},
37+
];
38+
_myTableView = ({
39+
TPKeyboardAvoidingTableView *tableView = [[TPKeyboardAvoidingTableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
40+
tableView.backgroundColor = kColorTableSectionBg;
41+
tableView.delegate = self;
42+
tableView.dataSource = self;
43+
[tableView registerClass:[TagColorEditCell class] forCellReuseIdentifier:kCellIdentifier_TagColorEditCell];
44+
[tableView registerClass:[TagColorDisplayCell class] forCellReuseIdentifier:kCellIdentifier_TagColorDisplayCell];
45+
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
46+
[self.view addSubview:tableView];
47+
[tableView mas_makeConstraints:^(MASConstraintMaker *make) {
48+
make.edges.equalTo(self.view);
49+
}];
50+
tableView;
51+
});
52+
}
53+
54+
#pragma matk Table
55+
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
56+
return 2;
57+
}
58+
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
59+
return section == 0? 1: _colorList.count;
60+
}
61+
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
62+
if (indexPath.section == 0) {
63+
TagColorEditCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier_TagColorEditCell forIndexPath:indexPath];
64+
cell.colorF.text = _curTag.color;
65+
@weakify(self);
66+
@weakify(cell);
67+
[cell.colorF.rac_textSignal subscribeNext:^(NSString *value) {
68+
if (![value hasPrefix:@"#"] || value.length != 7) {
69+
return ;
70+
}
71+
UIColor *color = [UIColor colorWithHexString:[value stringByReplacingOccurrencesOfString:@"#" withString:@"0x"]];
72+
if (!color || ![[value uppercaseString] hasSuffix:[color hexStringFromColor]]) {
73+
return ;
74+
}
75+
@strongify(self);
76+
@strongify(cell);
77+
self.curTag.color = [value uppercaseString];
78+
cell.colorView.backgroundColor = color;
79+
}];
80+
cell.colorView.backgroundColor = [UIColor colorWithHexString:[_curTag.color stringByReplacingOccurrencesOfString:@"#" withString:@"0x"]];
81+
[cell.randomBtn addTarget:self action:@selector(randomColorBtnClicked) forControlEvents:UIControlEventTouchUpInside];
82+
[tableView addLineforPlainCell:cell forRowAtIndexPath:indexPath withLeftSpace:kPaddingLeftWidth];
83+
return cell;
84+
}else{
85+
TagColorDisplayCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier_TagColorDisplayCell forIndexPath:indexPath];
86+
NSDictionary *colorDict = _colorList[indexPath.row];
87+
cell.colorView.backgroundColor = [UIColor colorWithHexString:[colorDict[@"value"] stringByReplacingOccurrencesOfString:@"#" withString:@"0x"]];
88+
cell.colorL.text = colorDict[@"name"];
89+
cell.accessoryType = [_curTag.color isEqualToString:colorDict[@"value"]]? UITableViewCellAccessoryCheckmark: UITableViewCellAccessoryNone;
90+
[tableView addLineforPlainCell:cell forRowAtIndexPath:indexPath withLeftSpace:CGRectGetMinX(cell.colorL.frame)];
91+
return cell;
92+
}
93+
}
94+
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
95+
[tableView deselectRowAtIndexPath:indexPath animated:YES];
96+
if (indexPath.section == 1) {
97+
NSDictionary *colorDict = _colorList[indexPath.row];
98+
_curTag.color = [colorDict[@"value"] uppercaseString];
99+
[self.navigationController popViewControllerAnimated:YES];
100+
}
101+
}
102+
#pragma mark Btn
103+
- (void)randomColorBtnClicked{
104+
_curTag.color = [NSString stringWithFormat:@"#%@", [[UIColor randomColor] hexStringFromColor]];
105+
[self.myTableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone];
106+
}
107+
@end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /