瀏覽代碼

Replace deprecated preferredView method by preferredFocusEnvironment

David Cordero 6 年之前
父節點
當前提交
2cfee98a30
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Apple-TV/VLCAboutViewController.m

+ 2 - 3
Apple-TV/VLCAboutViewController.m

@@ -65,9 +65,8 @@
     [self stopAnimation];
 }
 
-- (UIView *)preferredFocusedView
-{
-    return self.blablaTextView;
+- (NSArray<id<UIFocusEnvironment>> *)preferredFocusEnvironments {
+    return @[self.blablaTextView];
 }
 
 - (void)scrollToTop