Explorar o código

iOS 7 library: add some shadows and fix 'NEW' indicator l10n

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
fb72fefe8d
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      AspenProject/VLCPlaylistTableViewCell.m

+ 7 - 0
AspenProject/VLCPlaylistTableViewCell.m

@@ -29,6 +29,13 @@
     return cell;
 }
 
+- (void)awakeFromNib
+{
+    if (SYSTEM_RUNS_IN_THE_FUTURE) {
+        [(UILabel *)self.mediaIsUnreadView setText:[NSLocalizedString(@"NEW", @"") capitalizedStringWithLocale:[NSLocale currentLocale]]];
+    }
+}
+
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
 {
     [self _updatedDisplayedInformationForKeyPath:keyPath];