2
2
2and2015-08-05 21:23:02
Objective-C
2and, 2015-08-05 21:23:02

Custom back button in iOS?

Hello. I am making one of the first applications, I wanted to make a custom "Back" button. Such as here (at the very end of the View with the news), as I understand it, is it just an icon that was placed on the picture and blocked in the same place so that it remains in place when scrolling or is it a transparent Navigation Bar ???
If this is still just an icon in the picture, is it possible to do the same, will Apple block the application for such a button, because in order to go back you will have to scroll up?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Volodymyr Lavryk, 2015-08-05
@2and

as I understand it, it's just an icon that was placed on the picture and blocked in the same place so that it stays in place when scrolling, or is it a transparent Navigation Bar ???

is not a fact.
won't block. And scroll not all the way up. After all, you can do that with, for example, 30 pixels, the button scrolls back. An example of this is the VK application, when you scroll through the navbar, it flies away, but you need to return a little as it is immediately in place.
A few useful repos on the topic one , two .

A
Anton Bukov, 2015-08-13
@k06a

At the very beginning of the program run:

[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[UIImage imageNamed:@"back_button"]
                                        forState:UIControlStateNormal
                                      barMetrics:UIBarMetricsDefault];

A
Alexander Podrezov, 2015-08-07
@alpodrezov

Good afternoon.
If I understand correctly, then the solution is present in iOS9 back to "application name"
For example, when you open a link in wats'up in safari, back to wats'up will be written on the top left

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question