Post

Replies

Boosts

Views

Created

tvOS 14.3 UISearchController: How to locked in display.
In every OS iteration the look of the UISearchController is changing. Before it only change the keyboard portion but with 14.3 it changed that the keyboard portion is on left side while the search results are on the right, which is what we don't like since we have custom view and overlays on top of it. Any APIs to make it revert to the previous iteration, that is the keyboard are all within one horizontal line and search results on bottom, and stay that way forever? Here's the code for the integration. The UI look did mess up he app overall.     _searchController = [[UISearchController alloc] initWithSearchResultsController:_searchResults];     _searchController.searchResultsUpdater = self;     _searchController.view.backgroundColor = [UIColor clearColor];     _searchController.searchBar.keyboardAppearance = UIKeyboardAppearanceDark;     _searchController.searchBar.placeholder = @"TV Shows, Movies, Keywords";     _searchController.obscuresBackgroundDuringPresentation = false;     _searchController.hidesNavigationBarDuringPresentation = true;           _searchContainer = [[UISearchContainerViewController alloc] initWithSearchController:_searchController];     _navController = [[UINavigationController alloc] initWithRootViewController:_searchContainer];         [_navController willMoveToParentViewController:self];   [self addChildViewController:_navController];   [self.view addSubview:_navController.view]; PS: it'll be a lot helpful if I can post the image link
2
0
1.6k
Feb ’21
API for Inquiring Remote info in tvOS
Since Apple TV can pair with a universal remote, the siri remote and the new 2021 siri remote that has the dpad on it, we need a way to distinguish between each unique remotes. Are there APIs for getting the details of the remote being used in tvOS? Reason for this is we want to handle separate logics in using the old vs new siri remote.
0
0
610
Aug ’21
UIScrollView Fast Scrolling have it scroll to the beginning when i press dpad to left while vertical scrolling
I'm triaging the issue with the fast scrolling on UIScrollView and I'm really upset how little to no info this component is on the internet. Like i disabled scrolling and yet after holding the dpad down to scroll downward eventually the fast scroll mechanism is used. The issue I have is that I have a setup where the scrollview scrolling is disabled and whenever cells are focused it'll scroll to the cell's position for that cells to focused on top left side of the scrollview. I start off with the cell placed at position x of 1000. I scroll down enough to enable fast scrolling. While fast scrolling vertically, i press left a couple of time and it somewhat scroll horizontally. Actual scrollView index is suddenly placed to x:0 instead of let say x:950-1000 Expected should be scrolled to the left of cell at position x 1000. Attached the stack trace and the log showcasing it and run it on simulator tvos 26.2. Initial properties of the scrollview we set up scroll = [UIScrollView new]; scroll.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; scroll.automaticallyAdjustsScrollIndicatorInsets = false; [scroll setDirectionalLockEnabled:TRUE]; [scroll setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)]; scroll.bounces = FALSE; scroll.delaysContentTouches = FALSE; scroll.showsVerticalScrollIndicator = FALSE; scroll.showsHorizontalScrollIndicator = FALSE; The plan for me at least is to somehow disable the horizontal scrolling interaction of it when fast scrolling is enabled, without accessing the private components of it.
0
0
40
11h
tvOS 14.3 UISearchController: How to locked in display.
In every OS iteration the look of the UISearchController is changing. Before it only change the keyboard portion but with 14.3 it changed that the keyboard portion is on left side while the search results are on the right, which is what we don't like since we have custom view and overlays on top of it. Any APIs to make it revert to the previous iteration, that is the keyboard are all within one horizontal line and search results on bottom, and stay that way forever? Here's the code for the integration. The UI look did mess up he app overall.     _searchController = [[UISearchController alloc] initWithSearchResultsController:_searchResults];     _searchController.searchResultsUpdater = self;     _searchController.view.backgroundColor = [UIColor clearColor];     _searchController.searchBar.keyboardAppearance = UIKeyboardAppearanceDark;     _searchController.searchBar.placeholder = @"TV Shows, Movies, Keywords";     _searchController.obscuresBackgroundDuringPresentation = false;     _searchController.hidesNavigationBarDuringPresentation = true;           _searchContainer = [[UISearchContainerViewController alloc] initWithSearchController:_searchController];     _navController = [[UINavigationController alloc] initWithRootViewController:_searchContainer];         [_navController willMoveToParentViewController:self];   [self addChildViewController:_navController];   [self.view addSubview:_navController.view]; PS: it'll be a lot helpful if I can post the image link
Replies
2
Boosts
0
Views
1.6k
Activity
Feb ’21
API for Inquiring Remote info in tvOS
Since Apple TV can pair with a universal remote, the siri remote and the new 2021 siri remote that has the dpad on it, we need a way to distinguish between each unique remotes. Are there APIs for getting the details of the remote being used in tvOS? Reason for this is we want to handle separate logics in using the old vs new siri remote.
Replies
0
Boosts
0
Views
610
Activity
Aug ’21
Xcode 14 beta: NSString function does not return string type
I downloaded xcode 14 beta to look into the iOS 16 issue and now im seeing this compiler issue about NSString. Just by importing a UIKit onto a Objective C++ code gives me this error, not just one file. Any tips to fix this?
Replies
2
Boosts
1
Views
2.5k
Activity
Sep ’22
UIScrollView Fast Scrolling have it scroll to the beginning when i press dpad to left while vertical scrolling
I'm triaging the issue with the fast scrolling on UIScrollView and I'm really upset how little to no info this component is on the internet. Like i disabled scrolling and yet after holding the dpad down to scroll downward eventually the fast scroll mechanism is used. The issue I have is that I have a setup where the scrollview scrolling is disabled and whenever cells are focused it'll scroll to the cell's position for that cells to focused on top left side of the scrollview. I start off with the cell placed at position x of 1000. I scroll down enough to enable fast scrolling. While fast scrolling vertically, i press left a couple of time and it somewhat scroll horizontally. Actual scrollView index is suddenly placed to x:0 instead of let say x:950-1000 Expected should be scrolled to the left of cell at position x 1000. Attached the stack trace and the log showcasing it and run it on simulator tvos 26.2. Initial properties of the scrollview we set up scroll = [UIScrollView new]; scroll.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; scroll.automaticallyAdjustsScrollIndicatorInsets = false; [scroll setDirectionalLockEnabled:TRUE]; [scroll setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)]; scroll.bounces = FALSE; scroll.delaysContentTouches = FALSE; scroll.showsVerticalScrollIndicator = FALSE; scroll.showsHorizontalScrollIndicator = FALSE; The plan for me at least is to somehow disable the horizontal scrolling interaction of it when fast scrolling is enabled, without accessing the private components of it.
Replies
0
Boosts
0
Views
40
Activity
11h