title: Sharing Extension in IOS8 beta
body: <p>I'm trying to create a sharing extension using the new iOS 8 app extensions. I tried to get the current URL of a Safari site to show it in a UILabel. Simple enough.</p>
  
  <p>I was working trough the official extension guide from apple here <a href="https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Share.html#//apple_ref/doc/uid/TP40014214-CH12-SW1" rel="nofollow noreferrer">https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Share.html#//apple_ref/doc/uid/TP40014214-CH12-SW1</a> but some things are not working as expected. I know it is only in beta but maybe I'm just doing something wrong.</p>
  
  <p>Here is my code to get the URL from safari inside the extensions ViewController:</p>
  
  <pre><code>-(void)viewDidAppear:(BOOL)animated{
  NSExtensionContext *myExtensionContext = [self extensionContext];
  NSArray *inputItems = [myExtensionContext inputItems];
  NSMutableString* mutableString = [[NSMutableString alloc]init];
  for(NSExtensionItem* item in inputItems){
      NSMutableString* temp = [NSMutableString stringWithFormat:@"%@, %@, %lu, 
             %lu - ",item.attributedTitle,[item.attributedContentText string],
             (unsigned long)[item.userInfo count],[item.attachments count]];
  
      for(NSString* key in [item.userInfo allKeys]){
          NSArray* array = [item.userInfo objectForKey:@"NSExtensionItemAttachmentsKey"];
          [temp appendString:[NSString stringWithFormat:@" in array:%lu@",[array count]]];   
      }
      [mutableString appendString:temp];
  }
  self.myLabel.text = mutableString;
  }
  </code></pre>
  
  <p>And this is the content of my Info.plist file of my Extension:</p>
  
  <pre><code>&lt;dict&gt;
      &lt;key&gt;NSExtensionMainStoryboard&lt;/key&gt;
      &lt;string&gt;MainInterface&lt;/string&gt;
      &lt;key&gt;NSExtensionPointIdentifier&lt;/key&gt;
      &lt;string&gt;com.apple.share-services&lt;/string&gt;
      &lt;key&gt;NSExtensionActivationRule&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;NSExtensionActivationSupportsWebURLWithMaxCount&lt;/key&gt;
          &lt;integer&gt;200&lt;/integer&gt;
      &lt;/dict&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>When I visit apples iPod support page in Safari and try to share it to my extension, I get following values but no URL:</p>
  
  <pre><code>item.attributedTitle = (null)
  item.attributedContentText = "iPod - Apple Support"
  item.userInfo.count = 2 (two keys: NSExtensionAttributedContentTextKey and
      NSExtensionItemAttachmentsKey)
  item.attachments.count = 0
  </code></pre>
  
  <p>The arrays inside the objects of the dictionary are always empty.</p>
  
  <p>When I share the apple site with the system mail app the URL is posted to the message. So why is there no URL in my extension?</p>