Selaa lähdekoodia

Set content via text property, as attributedText is available in iOS6.0+

Gleb Pinigin 12 vuotta sitten
vanhempi
commit
4dedf38761

+ 1 - 1
AspenProject/VLCAboutViewController.m

@@ -33,7 +33,7 @@
 {
     [super viewDidLoad];
 
-    self.textContents.attributedText = [[[NSAttributedString alloc] initWithString:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil]] autorelease];
+    self.textContents.text = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil];
     self.aspenVersion.text = [NSString stringWithFormat:@"Version: %@", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]];
     self.vlckitVersion.text = [NSString stringWithFormat:@"Based on:\n%@",[[VLCLibrary sharedLibrary] version]];
 }

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 19 - 25
Resources/VLCAboutViewController~iphone.xib