mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-18 12:19:14 +00:00
Fix another typo, fix build failure
This commit is contained in:
parent
82c098b39d
commit
4f67050b9b
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
NSAttributedString *_normalAttributedTitle;
|
NSAttributedString *_normalAttributedTitle;
|
||||||
NSAttributedString *_highlightedAttributedTitle;
|
NSAttributedString *_highlightedAttributedTitle;
|
||||||
NSAttributedString *_seletedAttributedTitle;
|
NSAttributedString *_selectedAttributedTitle;
|
||||||
NSAttributedString *_disabledAttributedTitle;
|
NSAttributedString *_disabledAttributedTitle;
|
||||||
|
|
||||||
UIImage *_normalImage;
|
UIImage *_normalImage;
|
||||||
@ -88,8 +88,8 @@
|
|||||||
newTitle = _disabledAttributedTitle;
|
newTitle = _disabledAttributedTitle;
|
||||||
} else if (self.highlighted && _highlightedAttributedTitle) {
|
} else if (self.highlighted && _highlightedAttributedTitle) {
|
||||||
newTitle = _highlightedAttributedTitle;
|
newTitle = _highlightedAttributedTitle;
|
||||||
} else if (self.selected && _seletedAttributedTitle) {
|
} else if (self.selected && _selectedAttributedTitle) {
|
||||||
newTitle = _seletedAttributedTitle;
|
newTitle = _selectedAttributedTitle;
|
||||||
} else {
|
} else {
|
||||||
newTitle = _normalAttributedTitle;
|
newTitle = _normalAttributedTitle;
|
||||||
}
|
}
|
||||||
@ -143,10 +143,13 @@
|
|||||||
return _highlightedAttributedTitle;
|
return _highlightedAttributedTitle;
|
||||||
|
|
||||||
case ASControlStateSelected:
|
case ASControlStateSelected:
|
||||||
return _seletedAttributedTitle;
|
return _selectedAttributedTitle;
|
||||||
|
|
||||||
case ASControlStateDisabled:
|
case ASControlStateDisabled:
|
||||||
return _disabledAttributedTitle;
|
return _disabledAttributedTitle;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return _normalAttributedTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,12 +166,15 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ASControlStateSelected:
|
case ASControlStateSelected:
|
||||||
_seletedAttributedTitle = [title copy];
|
_selectedAttributedTitle = [title copy];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ASControlStateDisabled:
|
case ASControlStateDisabled:
|
||||||
_disabledAttributedTitle = [title copy];
|
_disabledAttributedTitle = [title copy];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
[self updateTitle];
|
[self updateTitle];
|
||||||
}
|
}
|
||||||
@ -188,6 +194,9 @@
|
|||||||
|
|
||||||
case ASControlStateDisabled:
|
case ASControlStateDisabled:
|
||||||
return _disabledImage;
|
return _disabledImage;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return _normalImage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,6 +219,9 @@
|
|||||||
case ASControlStateDisabled:
|
case ASControlStateDisabled:
|
||||||
_disabledImage = image;
|
_disabledImage = image;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
[self updateImage];
|
[self updateImage];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user