소스 검색

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

Gleb Pinigin 12 년 전
부모
커밋
4dedf38761
2개의 변경된 파일20개의 추가작업 그리고 26개의 파일을 삭제
  1. 1 1
      AspenProject/VLCAboutViewController.m
  2. 19 25
      Resources/VLCAboutViewController~iphone.xib

+ 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]];
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 19 - 25
Resources/VLCAboutViewController~iphone.xib