2

I want to integrate add book mark like safari in iphone like enter image description here

here the snapshot of add bookmark feature of safari browser from iPhone i want to add same feature like it How can i do it ?

Popeye
  • 11,839
  • 9
  • 58
  • 91
Vishal
  • 556
  • 4
  • 18

2 Answers2

2

First you will need to add an alertView

 sheet = [[UIActionSheet alloc] initWithTitle:@"Select Account to Delete"
                                      delegate:self
                             cancelButtonTitle:@"Cancel"
                        destructiveButtonTitle:@"Delete All Accounts"
                             otherButtonTitles:@"Add bookmark", @"add to reading", @"add to home screen", nil];
  // Show the sheet
  [sheet showInView:self.view];
  [sheet release];

that will create a popup view (AKA alertview) as your image shows above.

as for the "Add bookmark" or "add to home" it is slightly more complex, since the API does not provide you with the functions to do so, your best bet will be looking at a webview programatically launch Safari from within your app and give it the URL

read about it here: iPhone SDK - Add a "Add to Home Screen" button in a UIWebView

Community
  • 1
  • 1
chewy
  • 8,207
  • 6
  • 42
  • 70