Skip to content

Commit d4b799c

Browse files
committed
clean code
1 parent 9a5c2f9 commit d4b799c

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

FEPopupMenuController/FEPopupMenuController.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
*/
6161
@property (nonatomic, assign) CGFloat contentViewCornerRadius;
6262

63-
/**
64-
* title Color of each line, default is 0x565656
65-
*/
66-
@property (nonatomic, strong) UIColor *itemTitleColor;
67-
6863
/**
6964
* arrow view x position , default is 70% of contentViewWidth
7065
*/

FEPopupMenuController/FEPopupMenuController.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NS
138138
FEPopupMenuItemCell *cell = [tableView dequeueReusableCellWithIdentifier:[FEPopupMenuItemCell identifier]];
139139
FEPopupMenuItem *item = self.items[indexPath.row];
140140
[cell configCellWithItem:item];
141-
142-
// config
143-
if (self.itemTitleColor) {
144-
cell.titleLabel.textColor = self.itemTitleColor;
145-
}
146-
147141
return cell;
148142
}
149143

FEPopupMenuController/FEPopupMenuItem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef void(^FEPopupMenuItemActionBlock)(void);
3434
@property (nonatomic, copy) FEPopupMenuItemActionBlock action;
3535

3636
/**
37-
* the color of title in cell
37+
* the color of title
3838
*/
3939
@property (nonatomic, strong) UIColor *titleColor;
4040

0 commit comments

Comments
 (0)