In the Safari settings there are buttons to "Clear History", "Clear Cookies", and "Clear Cache" with an associated alert confirmation. Is there any way for us to do this?
In the Safari settings there are buttons to "Clear History", "Clear Cookies", and "Clear Cache" with an associated alert confirmation. Is there any way for us to do this?
Are you asking whether it's possible for your application to create its own Settings panel that shows up in the Settings app? (It is: see instructions for creating a Settings Bundle in the programming guide)
Or are you asking whether you can force Safari to e.g. clear its cache from your own code? I'm not aware of a way to do this.
No... I know how to create the settings file... I have a couple of switches and a slider... but I want a "button" that behaves similar to the "Clear History" row in the Safari settings.
No... I know how to create the settings file... I have a couple of switches and a slider... but I want a "button" that behaves similar to the "Clear History" row in the Safari settings.
As far as I know, there's no way for an external application to drive the history settings of Safari. This seems like bad practice in general-- if users wish to clear Safari's history, they can easily open Safari Settings.
Hey Brian,
The "Clear History" is a table view cell. when you select the cell it displays the UIActionSheet. So for your case, you need to have a tableView with grouped style and when the user select the table cell for History or Recents you display the action sheet and perform the action you would like to do.
The only thing you can do in Settings, I believe, is set up a plist... and I don't see any kind of "Key" that would be a "table row selection" and even if there was, how would the application know or respond to that row being selected.
My point was Safari does it, but I'm thinking that our applications can't do the same thing. And, of course, my hope was that I'm missing something and it can be done.
Oh ok. Now, I see what you are trying to do. I thought your settings is within your application context and I didn't know you were using the "General settings" feature. Sorry, for any misleading thoughts.