IOS xib 自定义view iphone自定义功能_python


iphone 快捷 自定义

IOS xib 自定义view iphone自定义功能_linux_02


Shortcuts are one of the new features in iOS12. They let you automate specific tasks (or sequences of tasks) on your iPhone or iPad that you can trigger with a single tap or voice command. So, what can you do with them? Let’s take a look.

快捷方式是iOS12中的新功能之一。 它们使您可以自动化iPhone或iPad上的特定任务(或任务序列),您可以通过单击或语音命令来触发这些任务。 那么,您可以如何处理他们? 让我们来看看。

(What Are Shortcuts?)


IOS xib 自定义view iphone自定义功能_IOS xib 自定义view_03


Long story short, Shortcuts in iOS let you automate sequences of actions so that you can perform them quickly with one tap on a shortcut icon or with a voice command issued to Siri.

长话短说,iOS中的“快捷方式”使您可以自动执行一系列操作,以便您一键点击快捷方式图标或使用发给Siri的语音命令即可快速执行这些操作。

You can  say a custom phrase like “Hey Siri, good night” to switch your phone to Do Not Disturb mode and turn the screen brightness all the way down (if you don’t already have auto-brightness enabled). Third-party apps can also include support for Shortcuts for getting things done in those specific apps. Philips Hue is one example, where you can record custom phrases to tell Siri, and she’ll activate your favorite Hue scenes. This is just one small example, though.

您可以说一个自定义短语,例如“嘿Siri,晚安”,以将手机切换为“请勿打扰”模式,并将屏幕亮度一直调低(如果尚未启用自动亮度调节功能)。 第三方应用程序还可以包括对快捷方式的支持,以便在这些特定的应用程序中完成工作。 飞利浦Hue就是一个例子,您可以在其中记录自定义短语来告诉Siri,她将激活您最喜欢的Hue场景。 不过,这只是一个小例子。

You can, of course, trigger shortcuts without using your voice by tapping on the shortcut within the Shortcuts app. You can even create home screen icons for shortcuts or place them on your lock screen in the form of widgets.

当然,您可以通过点击“快捷方式”应用中的快捷方式来触发快捷方式而无需使用语音。 您甚至可以为快捷方式创建主屏幕图标,或者以小部件的形式将其放置在锁定屏幕上。

(How Do I Get Started?)

To create a custom shortcut, you’ll use the Shortcuts app, so make sure you have it downloaded to your iPhone. To get started, open up the app and tap the “Create Shortcut” button. You can also tap the “Gallery” tab at the bottom to browse pre-made shortcuts that you might find useful.

要创建自定义快捷方式,您将使用“快捷方式”应用,因此请确保已将其下载到iPhone。 首先,打开应用程序,然后点击“创建快捷方式”按钮。 您也可以点击底部的“图库”标签,浏览可能有用的预制快捷键。


IOS xib 自定义view iphone自定义功能_IOS xib 自定义view_04


For this guide, though, we’ll create a simple shortcut for searching for restaurants nearby no matter where you are. Obviously, you can customize the shortcut how you want, but we’ll simply be showing you how it all works and then leave it to you to add your creative touch.

不过,对于本指南,无论您身在何处,我们都将创建一个简单的快捷方式来搜索附近的餐馆。 显然,您可以根据需要自定义快捷方式,但是我们只是向您展示其全部工作方式,然后将其留给您来添加创意。

After you’ve tapped on “Create a Shortcut,” swipe up from the bottom to expand the Actions screen, which will show a list of various actions that you can add to your shortcut. If the specific action you want doesn’t appear, tap the search bar at the top, and you’ll be able to find it that way.

点击“创建快捷方式”后,从底部向上滑动以展开“操作”屏幕,该屏幕将显示可添加到快捷方式的各种操作的列表。 如果您想要的特定操作没有出现,请点击顶部的搜索栏,您将可以通过这种方式找到它。


IOS xib 自定义view iphone自定义功能_python_05


For my shortcut, I’ll search for “maps” and then select “Search Local Businesses.”

对于我的快捷方式,我将搜索“地图”,然后选择“搜索本地商家”。


IOS xib 自定义view iphone自定义功能_linux_06


After you add an action, you can customize it. In the “Search” field, we’re typing in “restaurants.” Below that, you can change the search radius in kilometers if you want.

添加动作后,可以对其进行自定义。 在“搜索”字段中,我们输入“餐厅”。 在此之下,您可以根据需要更改以公里为单位的搜索半径。


IOS xib 自定义view iphone自定义功能_python_07


So now that we’ve told the shortcut to search for restaurants nearby, it needs an output. In other words, what does the shortcut do with this information? It needs to open up the maps app and display the results. So we’ll need to add another action for this. In this case, we’ll select “Show in Maps.”

因此,既然我们告诉了搜索附近餐馆的快捷方式,它就需要输出。 换句话说,快捷方式对这些信息有什么作用? 它需要打开地图应用程序并显示结果。 因此,我们需要为此添加另一个操作。 在这种情况下,我们将选择“在地图中显示”。


IOS xib 自定义view iphone自定义功能_python_08


You can select which maps app it opens by tapping on “Maps App.” We’ll stick with the default Apple Maps, though.

您可以通过点击“地图应用”来选择要打开的地图应用。 不过,我们将使用默认的Apple Maps。


IOS xib 自定义view iphone自定义功能_java_09


At this point, the shortcut is done, and you can tap on the play button at the top to test it out and make sure it works as you want.

至此,快捷方式已完成,您可以点击顶部的播放按钮进行测试,并确保它可以根据需要运行。


IOS xib 自定义view iphone自定义功能_python_10


After that, we just need to customize some things, like giving the shortcut a name and adding it to Siri. Tap on the toggle switch button up toward the top-right corner of the screen.

之后,我们只需要自定义一些内容,例如给快捷方式起一个名称并将其添加到Siri。 在屏幕的右上角点击切换按钮。


IOS xib 自定义view iphone自定义功能_linux_11


Give the shortcut a name by tapping on “Untitled Shortcut” and then typing it in. Hit “Done” when finished. You can also change the icon if you want.

通过点击“无标题的快捷方式”并键入快捷方式来命名快捷方式。完成后点击“完成”。 您也可以根据需要更改图标。


IOS xib 自定义view iphone自定义功能_IOS xib 自定义view_12


To trigger this shortcut using Siri, tap the “Add to Siri” option.

要使用Siri触发此快捷方式,请点击“添加到Siri”选项。


IOS xib 自定义view iphone自定义功能_git_13


Next, hit the record button and say the custom phrase that will trigger the shortcut. Hit the record button again at the end of your phrase to stop recording.

接下来,点击“录制”按钮,说出将触发快捷方式的自定义短语。 在您的词组末尾再次点击录音按钮以停止录音。


IOS xib 自定义view iphone自定义功能_IOS xib 自定义view_14


Hit “Done” in the top-right corner if everything looks good.

如果一切正常,请单击右上角的“完成”。


IOS xib 自定义view iphone自定义功能_python_15


There are some other options you can enable towards the bottom, like adding the shortcut to your home screen (or as a widget), sharing the shortcut with other users, and having the shortcut appear in the share menu within other apps.

您还可以在底部启用其他一些选项,例如将快捷方式添加到主屏幕(或作为小部件),与其他用户共享快捷方式以及使快捷方式出现在其他应用程序的共享菜单中。


IOS xib 自定义view iphone自定义功能_python_16


Once you’ve customized these settings, hit “Done” and then hit “Done” again to go back to the main screen. You’ll see your new shortcut, and you can tap on it to run it if you’d like (or from the home screen if you’ve added a home screen icon for it). But if you’ve set it up to work with Siri, you can use your voice instead, just like you would with any other Siri command.

自定义这些设置后,点击“完成”,然后再次点击“完成”以返回主屏幕。 您会看到新的快捷方式,并且可以根据需要点击它来运行它(或者,如果您已经为其添加了主屏幕图标,则可以从主屏幕上运行它)。 但是,如果您将其设置为可与Siri一起使用,则可以改为使用您的声音,就像使用其他任何Siri命令一样。


IOS xib 自定义view iphone自定义功能_git_17




You can get as simple or complicated with Shortcuts as you want, but it’s not as easy and intuitive to set up shortcuts as we would like. Luckily, the Gallery makes it easy to find shortcuts that you might find helpful, and there are several resources that you can use as well, like r/Shortcuts on Reddit and ShortcutsGallery.com.

您可以根据需要使快捷方式变得简单或复杂,但是设置快捷方式并不像我们想要的那样简单直观。 幸运的是,通过Gallery可以轻松找到可能有用的快捷方式,并且还可以使用多种资源,例如Reddit上的r / ShortcutsShortcutsGallery.com

翻译自: https://www.howtogeek.com/368465/what-are-siri-shortcuts-and-how-do-i-use-them/

iphone 快捷 自定义