Posts: 835
Joined: Apr 2010
Reputation:
3
do not. It is not in the hold part no. And in the "gestures" part. At least for me. It's taking time when I'm done ....
Posts: 132
Joined: Aug 2014
Reputation:
2
Quick feedback on that one; no problems here with speed of remote control gestures.
Posts: 183
Joined: Apr 2012
Reputation:
10
I can´t test right now, but i never had this problem too. I will test as soon as possible.
Posts: 835
Joined: Apr 2010
Reputation:
3
claymic,
thank you!
I'm sorry, my test equipment is disabled ... I have raspberry, windows and android.
I'm currently testing kurumim on kodi installed on my mac air
Posts: 835
Joined: Apr 2010
Reputation:
3
claymic,
It would be possible to put on the home screen a group of channels .....
Example: Movie channels .... where the user defines which group ...
Posts: 2,186
Joined: Feb 2013
Reputation:
164
There's no rule about hiding the status bar (if you mean the bar with the battery icon, time, etc). I do it in every app and passed the review without a problem. In games it's also quite normal to do it.
It's just a few lines of code without using private API's. If you want to have it, no problem.
Posts: 2,186
Joined: Feb 2013
Reputation:
164
It's always difficult without having the actually code to look at :-( Which article on stackoverflow are you referring to?
Posts: 2,186
Joined: Feb 2013
Reputation:
164
Is the effect you are trying to accomplish that when you scroll up the navigation bar (and status bar) should hide and when scrolling down it should appear again? Just like safari is doing (only safari keeps the status bar).
Posts: 183
Joined: Apr 2012
Reputation:
10
Yep, exactly. I am already hiding and showing the navigation bar when we scroll a page or collection view. I just need to hide or show the status bar together with the navigation bar.
Posts: 2,186
Joined: Feb 2013
Reputation:
164
2017-02-06, 00:30
(This post was last modified: 2017-02-06, 00:32 by rschiks.)
I would handle it like this (just a suggestion for a few steps):
- add a pan gesture to the screen. This allows you to detect the speed, direction and offset of the finger movement.
- when the movement is going up you can dynamically change the frame size of the navigation bar because the pan gesture is giving you the movement offset, but first add a uiview on top of the navigation bar and status bar with an opacity of 0. When dynamically changing its frame, change the opacity to 1 so you get the effect the status bar and navigation bar are disappearing and getting solid (safari effect).
- if the movement offset is more than 20 pixels you can hide the status bar
- when the navigation bar frame size is getting smaller you need to make the collectionview (or tableview) bigger for the same amount. You can use the contentoffset of the collectionview to compensate, so the current position in the collectionview remains. Otherwise the current position of the collectionview will jump under the users finger because the frame is getting bigger.
- if the movement is more than the height of the status bar and navigation bar you are full screen and the pan should stop changing stuff.
- make sure the gestures are also forwarded to your collectionview, otherwise it will stop moving.
Quite some steps, but you are in full control of what is happening.
I have no idea if the hidebarsonswipe option is doing exactly the same, but my motto, if you want to do it right, do it yourself.
Posts: 183
Joined: Apr 2012
Reputation:
10
Thanks for your suggestion man, i will try to implement it when i get some time free. But i have two problems to solve first :
1 - If i use a pan gesture in a view with a collection the up and down will never fire because the collection or table will have the priority. I can change this using a gestureRecognizerShouldBegin delegate, but then i will have to handle with the collection view scroll manually and i will have to adapt some functions that i use based on this scroll. Maybe some scrollview delegate could let me know the offset? so i will not have to add the pan gesture.
2 - My app is using a custom Navigation controller that automatically add a pan gesture and a swipe gesture to all my pages. This is a little complex to handle because i am doing a 3d transition and some page´s control. I would not like to mess with it.
As soon as i get some time free i will try to use the barHideOnSwipeGestureRecognizer delegate again and change the navigation position before set the status bar to be visible. This seems to me the most easy way to handle it, since i can exactly now the position of the navigation and collection view as soon as the navigation become visible or not.
The hidesBarsOnSwipe is really cool, i just would like that it could handle the status bar too.