Explorar o código

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

Gleb Pinigin %!s(int64=12) %!d(string=hai) anos
pai
achega
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]];
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 19 - 25
Resources/VLCAboutViewController~iphone.xib