webduvet
webduvet

Reputation: 4292

creating slide up menu like in iOS 7 Safari's share/bookmark menu

I'd like to create very similar sliding up menu as share/bookmark/copy/paste menu in iOS7 Safari.

What is the best way of building it? Is there any ready made template in XCode or do I have to follow the same principle as when building the slide left/right hamburger menu?

Upvotes: 0

Views: 337

Answers (1)

Maurice
Maurice

Reputation: 1464

example action:

-(IBAction)sendPost:(id)sender {
    NSArray *activityItems;


    activityItems = @[@"example share / copy text"]; //needs to be an array because you //could add pictures additionally


    UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];

    [self presentViewController:activityController
                       animated:YES completion:nil];
}

Upvotes: 2

Related Questions