Built-in Activity Types

  • How does one specify which of the built-in Activity Types should be displayed in the UIActivityViewController?

    If I do this:

      NSArray *activityItems = [NSArray arrayWithObject:@"STRING"];
      self.activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];

    I get Mail, Message and Copy activities but would like to customize this list to be Mail, Print,FaceBook.

    I am stumped!

    -koko
  • I should also note that I want to add my custom activities as well and understand I need to subclass UIActivity but some details would be helpful.

    On May 1, 2013, at 12:39 PM, koko <koko...> wrote:

    > How does one specify which of the built-in Activity Types should be displayed in the UIActivityViewController?
    >
    > If I do this:
    >
    > NSArray *activityItems = [NSArray arrayWithObject:@"STRING"];
    > self.activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
    >
    >
    > I get Mail, Message and Copy activities but would like to customize this list to be Mail, Print,FaceBook.
    >
    > I am stumped!
    >
    > -koko
    >
  • On Wed, 01 May 2013 12:59:48 -0600, koko <koko...> said:
    > I should also note that I want to add my custom activities as well and understand I need to subclass UIActivity but some details would be helpful.

    Same answer:

    http://www.apeth.com/iOSBook/ch26.html#_activity_view

    m.

    --
    matt neuburg, phd = <matt...>, <http://www.apeth.net/matt/>
    A fool + a tool + an autorelease pool = cool!
    Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today