In ios 8 new app extensions, is it possible to create an app extension that would enable performing an action on a highlighted text? Similar to how today the copy and select sub menus appear, would it be able to add another custom action?
Something similar to what you have described could be accomplished with an Action type extension, which allows your extension to act on the user's current selected content (text, image, etc). However, you won't be able to populate your action in the copy/paste submenu, as iOS action extensions are limited to displaying an action sheet or modal view. This will be presented when a user makes a selection, taps the Share button, and selects your extension from the activity view controller. Read more in the App Extensions Programming Guide under "Action" (page 48).
Related
After doing some research I discovered that a user can make a shortcut a widget by holding down on the home-screen, pressing the top left button, searching for "shortcuts", and then tapping on the specific shortcut.
From this article I discovered that it's possible to automatically create a shortcut for the user (they don't have to physically add a shortcut in the shortcuts app that your app donated, instead they can just click a button).
Thus, I was wondering if it's also possible to create a widget for a shortcut you defined, where all the user has to do is tap a button within your app, instead of going through the whole search process.
Thanks
I have a iOS app that wraps a website. When the user clicks a link in the wrapped website, I want to trap the event in my app and be able to get information about the link that was clicked. Is this something that can be done in Swift?
I'm relatively new to iOS app development and I'm working on an app that has been around for a while.
The short answer is "Yes". There are a couple of views that you can use in iOS to display web content. One such view is WKWebView.
If you look at the documentation at that link, close to the bottom of the page you will find a header for "Managing Navigation Through your Web Content".
What you do is create a WKNavigationDelegate that you attach to your WKWebView. That delegate is notified when the user wants to navigate through the web content (for example, when they click on a link) and lets your application code participate in the navigation process. It can allow navigation, deny navigation, find out when it starts and stop, things of that nature.
I'm trying to add buttons to a widget having family type ".systemLarge". I want to execute some code without opening the app.
Anyone knows how to do that?
For example the Shortcuts App Widget includes buttons you can tap to execute a shortcut without opening the app.
Widgets are read only. The Shortcuts app is an exception.
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension
Widgets present read-only information and don’t support interactive elements such as scrolling elements or switches. WidgetKit omits interactive elements when rendering a widget’s content.
You can add Link controls on medium and large size widgets to get a button like behavior.
This won't allow you to create interactive widgets, which change their content by clicking elements inside the widgets.
But you will be able to tell which "link" was clicked based on the widgetUrl provided when your app gets activated through the widget.
See the chapter Respond to User Interactions here:
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension
I'm trying to create custom Siri shortcut with Intents UI.
What I want to know is how I make custom intent which has no button on Siri interface.
Image is like Kayak's Siri Interface.
https://www.apple.com/newsroom/images/product/os/ios/standard/ios12_iphonexs-siritravelplans-09172018_inline.jpg.large_2x.jpg
When I create custom intent from intentdefinition file, I have to choose certain category from limited categories list (Do, Order, Start etc). Then I call my custom intent, Siri shows action buttons ("Do", "Order", "Cancel") in the interface bottom area. But I want not to display these action buttons. Can I have a way? I've read official documents, unfortunately I did't found it.
I have a requirement to create a ipad app that supports tab to view content. I have created a custom splitview controller, whenever user goes to a particular section in the left section, the contents related to that will be displayed in the content view(right view). If a user selects a particular link in that content view it should open a tab and display the contents of that link in that new view. Similar to Web Browser tabs i need to handle tabs in this app. Please suggest any available open source component or any ideas to implement tabbing inside a ipad app.
You can use Three20 for your tab purpose. Also there are many open Source components available. You just need to search in google.