![]() The sharing UI on both platforms is constrained in size. When a user chooses Post, a Share extension validates the text view’s content (in addition to attachments, if any) and calls the completeRequestReturningItems:expirationHandler:completion: method of NSExtensionContext, using code like the following:įor best results, use Auto Layout to design a Share extension. The default SLComposeServiceViewController object includes a text view that displays the user’s editable text content. (To learn more about how an extension can interact with its context, see Respond to the Host App’s Request.) The extension context object also contains information about the status of the posting operation. (To learn more about how to use JavaScript to access a webpage, see Accessing a Webpage.) You also add keys and values if you want to specify the data types your extension works with (to learn more, see Declaring Supported Data Types for a Share or Action Extension).Ī Share extension uses its principal view controller’s extensionContext property to get the NSExtensionContext object that contains the user’s initial text and any attachments for a post, such as links, images, or videos. For example, to provide a JavaScript file that accesses a webpage, add the NSExtensionAttributes key and a dictionary that specifies the file. The Xcode Share template provides default header and implementation files for the principal view controller class (called SharingViewController), an ist file, and an interface file (that is, a storyboard or xib file).ĭepending on the functionality of your Share extension, you might need to add keys and values to the default property list. ![]() The system-provided compose view controller builds in some support for common tasks, such as previewing and validating standard items, synchronizing content and view animation, and configuring a post. You can base your view on the system-provided compose view controller, or you can create a completely custom compose view. When users choose your Share extension, you display a view in which they compose their content and post it. Select some content, Control-click to reveal a contextual menu, and choose Share. View the Social area in Notification Center. In OS X, users can reveal the list of sharing services in a few different ways. In iOS, users tap the Share button and choose a Share extension from the sharing area of the activity view controller that appears. Users get access to Share extensions in the system-provided UI. You can learn more about specifying content types in Declaring Supported Data Types for a Share or Action Extension. This saves me the manual step of remembering to delete it from my camera roll.You may want to specify the types of content your Share extension can work with so that users understand what they can share. I find the latter useful when I’ve already shared it with someone and know I won’t need it later. Pressing Done allows you to save to Photos or delete it. The text tool (accessible from the + menu) is useful for conveying quick information that a shape can’t easily explain.Īfter you are done, you can tap the Share button in the bottom left to share it elsewhere. You can use it to select the markup and drag it to a new location. The Lasso tool is useful if you draw something in the wrong spot. You can add new ones, and then drop them right into the signature section. I had a number of them added already through the Preview app on macOS. ![]() You can crop it, tap +, and choose Signatures. The signature tool is very helpful if you need to quickly sign documents. The eraser tool is helpful if you need to make quick corrections. ![]() The pen, pencil, and highlighter tool are all useful in different situations. Mark Up is what most people think about when they see screenshot annotation apps. Pressing the + button opens options for text, signature, magnifier, shapes, and an arrow tool. This includes a pen, highlighter, pencil, eraser, lasso tool, and a color selector. There are various input tools across the bottom. The handles surrounding the image will allow you to crop the shot. If you ignore it, it will eventually be saved to your Photos app. The main difference is you will now see a thumbnail appear in the bottom left corner. You trigger the editor just like previous iOS versions: press the Sleep/Wake button and the Home button at the same time. While I don’t think it’s the best annotation app, it’s really good for what it is. I wrote about the new screenshot editor in our 11 quick tips on iOS 11, but it’s also something I want to cover in more depth to help you unlock all it can do.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |