如何在ios safari的地址栏中实现刷新/停止按钮?

如何在ios safari的地址栏中实现刷新/停止按钮?,ios,objective-c,safari,Ios,Objective C,Safari,像地址栏上红色标记的刷新/停止按钮一样,如何创建这样的按钮? 非常感谢你! UITextField具有rightView属性。您可以将ui按钮指定给该属性。祝你好运 对,只需添加一个这样的按钮 UIButton *theButton = [UIButton buttonWithType:UIButtonTypeContactAdd]; theText.rightView = theButton; theText.rightViewMode = UITextFieldViewModeAlways;

像地址栏上红色标记的刷新/停止按钮一样,如何创建这样的按钮? 非常感谢你!
UITextField
具有
rightView
属性。您可以将
ui按钮
指定给该属性。祝你好运

对,只需添加一个这样的按钮

UIButton *theButton = [UIButton buttonWithType:UIButtonTypeContactAdd];
theText.rightView = theButton;
theText.rightViewMode = UITextFieldViewModeAlways;
但您需要刷新和停止图像作为按钮图像