Safari iOS update button. Can i use it?

I have a text box and I need the refresh button, for example, in the Safari navigation bar.

How can I use it instead of creating my own?

enter image description here

+4
source share
2 answers

Updated graphics can be retrieved using the UIKit Artwork Extractor . (Or get an update icon from one of the many free iphone icon sets, like Glyphish )

To place it in a UITextField, as in Safari, set the rightView UITextField property to a UIImageView or UIButton with the image set to the updated image.

UITextField* myTextField = [[[UITextField alloc] initWithFrame: CGRectMake(0,0,200,44)] autorelease]; myTextField.rightView = [[[UIImageView alloc] initWithImage: [UIImage imageNamed: @"UIButtonBarRefresh.png"]] autorelease]; 

You need to use UIButton instead of UIImageView if you want to receive TouchUpInside notification for update button.

+5
source

This is a custom safari widget. You have to make your own.

+3
source

Source: https://habr.com/ru/post/1346491/


All Articles