今天給各位分享Scheme怎么搜索廚具吃雞的知識,其中也會對吃雞steam怎么搜進行解釋,如果能碰巧解決你現在面臨的問題,別忘了關注本站,現在開始吧!
我們都知道,蘋果系統使用沙盒機制來保障用戶的隱私和安全,一個App只能訪問自己的沙盒,不能訪問其他app的信息。這樣保證了app的用戶的信息的同時,也阻礙了不同的App 之間的信息交流。所以蘋果提供了一個可以在App之間跳轉的方法:URL Scheme。一個App可以設置自己的URL Scheme,另外的App可以使用這個URL Scheme,然后通過系統的OpenURL來打開該App。就像網頁一樣,通過一個網址來跳轉到另一個網址。
舉例如下:
shemeUseApp://ipOrYuming:8080/path?param1=xxxparam2=yyy
使用上述所說的 schemeUseApp:// 在瀏覽器中進行測試。本文使用的是模擬器,在瀏覽器中輸入 schemeUseApp:// ,點擊搜索。
在跳轉的 URL scheme 中可以添加參數,比如: shemeUseApp://ipOrYuming:8080/path?param1=xxxparam2=yyy 。
在工程的 AppDelegate.m 文件中,重寫方法 - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionaryUIApplicationOpenURLOptionsKey,id *)options ,并在方法中進行URL的分析拆解,就可以得到相關的參數。
This document describes several URL schemes that are supported by system apps on iOS, macOS, and watchOS 2 and later. Native iOS apps and web apps running in Safari on any platform can use these schemes to integrate with system apps and provide a more seamless experience for the user. For example, if your iOS app displays telephone numbers, you could use an appropriate URL to launch the Phone app whenever someone taps one of those numbers. Similarly, clicking an iTunes link launches the iTunes app and plays the song specified in the link. When a user clicks a link, what happens depends on the platform and the installed system apps.
本文檔介紹了在 iOS、macOS 和 watchOS2 及以上版本的 watchOS 中所支持的幾種系統 URL scheme。在任何平臺上運行的 iOS 原生 app 或者 Safari 中的 web app 都可以使用這些 scheme 來提供一種無縫連接的用戶體驗。打個比方,如果你的 iOS app 顯示了一串電話號碼,你可以在用戶點擊電話號碼的時候調用適當的URL來啟動“電話”這個系統 app 來打電話。同樣的,在點擊一個 iTunes 鏈接的時候啟動 iTunes app 并播放鏈接中指定的歌曲。當一個用戶點擊鏈接時,具體發生什么事情取決于當前操作系統和系統app。
This document describes those schemes that require special attributes or special formatting in order to be understood by the associated system app. As a result, this document does not describe all URL schemes supported on different Apple platforms.
這個文檔的目的是幫助讀者理解那些必須使用特殊格式才能和系統 app 關聯的 scheme。所以,這個文檔并沒有把所有 Apple 平臺上支持的 URL scheme 都列舉出來。
You should read this document if you want to launch a system app from your iOS or macOS app, or from your web app running in Safari. This document contains both Cocoa Touch sample code—using the openURL:options:completionHandler: method of the shared UIApplication object to open URLs—and HTML samples.
如果你想在 iOS app、macOS app 以及 Safari 的 web app 中啟動系統 app,那么應該先讀該文檔。這個文檔包含了 Cocoa Touch 中的例子——使用 UIApplication 單例中的 openURL:options:completionHandler: 方法,以及HTML中的例子。
Use the mailto scheme to open the Mail app and populate a new email with information.
使用 mailto scheme 打開郵件 app 并使用附帶的信息生成新的郵件。
The mailto scheme is used to launch the Mail app and open the email compose sheet. When specifying a mailto URL, you must provide the target email address. The following examples show strings formatted for Safari and for native apps.
mailto scheme 用來啟動 郵件 app 并打開郵件編寫頁面。當指定一個 mailto URL的時候,你必須提供目標郵件的地址。以下的例子里列舉了 Safari 和 原生 app 中的 scheme 格式:
a href="mailto:frank@wwdcdemo.example.com"John Frank/a
mailto:frank@wwdcdemo.example.com
You can also include a subject field, a message, and multiple recipients in the To, Cc, and Bcc fields. (In iOS, the from attribute is ignored.) The following example shows a mailto URL that includes several different attributes:
你還可以在scheme中包含主題、郵件內容、多個收件人、多個抄送以及密送人。以下例子中展示了一個包含多種不同屬性的 mailto scheme:
For detailed information on the format of the mailto scheme, see RFC 2368 .
有關 mailto scheme 的詳細格式方案信息,請參閱 RFC 2368 。
Use the tel and facetime schemes to initiate telephone or video conversations.
使用 tel 和 facetime scheme 開始通話或發起一個視頻會話。
The tel URL scheme is used to launch the Phone app on iOS devices and initiate dialing of the specified phone number. When a user taps a telephone link in a webpage, iOS displays an alert asking if the user really wants to dial the phone number and initiates dialing if the user accepts. When a user opens a URL with the tel scheme in a native app, iOS 10.3 and later displays an alert and requires user confirmation before dialing. (When this scenario occurs in versions of iOS prior to 10.3, iOS initiates dialing without further prompting the user and does not display an alert, although a native app can be configured to display its own alert.)
tel URL scheme 用來啟動 iOS 上的 電話 app 并向指定的手機號碼撥號。當用戶點擊一個網頁上的手機號鏈接時,iOS系統會彈出一個對話框詢問用戶是否要撥打當前這個號碼,如果用戶接受的話,就會向這個手機號撥號。當一個用戶在 原生 app 上打開一個 tel scheme 時,如果是 iOS10.3 以及更高的系統版本的話,在撥打之前也會彈出一個確認框。(當這種情況發生在10.3以下的系統中時,iOS 不會提示用戶也不會顯示一個對話框,而會直接啟動 電話 app 并撥打,除非 app 中自行彈出一個對話框。)
FaceTime in macOS 10.10 and later can also use the tel URL scheme to launch the Phone app on an iOS device by using Handoff. This scenario works when FaceTime is configured to dial phone numbers (the default configuration) and the iOS device is connected to the same iCloud account as the Mac.
FaceTime 在 macOS 10.10 以及之后的系統中也可以使用 tel URL scheme 然后通過 Handoff 啟動 iOS 設備上的 電話 app。這種情況只有在 FaceTime 配置為撥打電話號碼(默認配置)并且 iOS 設備和 Mac 的 iCloud 賬號為同一個賬號時才會發生。(否則在 macOS 上使用 tel scheme 會直接打開 FaceTime app)。
You can specify phone links explicitly in both web and native iOS apps using the tel URL scheme. The following examples show the strings formatted for Safari and for a native app:
在 web 和 原生 iOS app 上你都可以使用 tel URL scheme。以下的例子展示了該 scheme 的規則:
a href="tel:1-408-555-5555"1-408-555-5555/a
tel:1-408-555-5555
To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number. If your app receives URL strings from the user or an unknown source, you should also make sure that any special characters that might not be appropriate in a URL are escaped properly. For native apps, use the stringByAddingPercentEscapesUsingEncoding: method of NSString to escape characters, which returns a properly escaped version of your original string.
為了避免用戶撥打惡意重定向電話或者更改電話、賬號的行為,電話 app 支持 tel scheme 中大部分但并非全部的特殊字符。具體來說,如果 URL 中包含 * 或者 # 字符,電話 app 不會嘗試撥打相應的手機號碼。如果你的 app 收到用戶或者未知來源的 URL 字符串,你應該確保 URL 中的特殊字符能夠被正確轉義。在原生 app 中,使用 NSString 類中的 stringByAddingPercentEscapesUsingEncoding: 方法來轉義,該方法會返回轉義后的字符串。
In Safari on iOS, telephone number detection is on by default. However, if your webpage contains numbers that can be interpreted as phone numbers, but are not phone numbers, you can turn off telephone number detection. You might also turn off telephone number detection to prevent the DOM document from being modified when parsed by the browser. To turn off telephone number detection in Safari on iOS, use the format-detection meta tag as follows:
在 iOS 的 Safari 瀏覽器上,電話號碼檢測是默認開啟的。但是如果你的網頁上包含一些被誤認為電話號碼的數字,你可以關閉電話號碼檢測。為了防止瀏覽器解析DOM時篡改電話號碼,你也可以關閉電話號碼檢測功能。使用 format-detection 標簽來關閉 iOS 中的 Safari 電話檢測功能,如下所示:
meta name = "format-detection" content = "telephone=no"
Listing 2-1 shows a simple webpage in which automatic telephone number detection is off. When displayed in Safari on iOS, the 408-555-5555 telephone number does not appear as a link. However, the 1-408-555-5555 number does appear as a link because it is in a phone link.
2-1 清單展示了一個關閉電話檢測的簡單網頁。當網頁展示在 iOS 的 Safari 中時, 408-555-5555 并不會展示成鏈接的樣子。然而, 1-408-555-5555 會被顯示成一個鏈接因為它確實是一個超鏈接(標簽)。
Listing 2-1 Turning telephone number detection off
For more information about the tel URL scheme, see RFC 2806 and RFC 2396 .
有關 tel URL scheme 的詳細信息,請參閱 RFC 2806 和 RFC 2396 。
The facetime URL scheme is used to initiate a FaceTime call to a specified user. You can use the phone number or email address of a user to initiate the call. When a user taps a FaceTime link in a webpage, iOS confirms that the user really wants to initiate a FaceTime call before proceeding. When an app opens a URL with the facetime scheme, iOS opens the FaceTime app and initiates the call without prompting the user. When opening FaceTime URLs on macOS, the system always prompts the user before initiating a call.
faceTime URL scheme 用來給指定用戶發起 FaceTime 通話。你可以用戶的使用電話號碼或者郵件地址來發起。當用戶點擊一個網頁上的 FaceTime 鏈接時, iOS 系統會在繼續之前讓用戶進行確認。當一個 app 打開 facetime URL時, iOS 不會提示用戶而是直接打開 FaceTime app。(實測iOS10以下不會提醒,iOS10及以上會彈出確認框)在 macOS 上打開 FaceTime URL 的時候,系統總是會在打開之前提醒用戶。)
You can specify FaceTime links explicitly in both web and native iOS apps using the facetime URL scheme. The following examples show the strings formatted for Safari and for a native app:
在 web 和 原生 iOS app 上你都可以使用 facetime URL scheme 來制定一個 FaceTime 鏈接。以下的例子展示了該格式的字符串:
To prevent users from maliciously redirecting calls or changing the behavior of a phone or account, the FaceTime app supports most, but not all, of the special characters in the facetime schemes. Specifically, if a URL contains the * or # characters, the app ignores those characters when they are included after the phone number. If your app receives URL strings from the user or from an unknown source, use the stringByAddingPercentEscapesUsingEncoding: method of NSString to generate a properly escaped version of the original string before opening the URL.
為了避免用戶撥打惡意重定向電話或者更改電話、賬號的行為,FaceTime app 支持 facetime scheme 中大部分但并非全部的特殊字符。具體來說,如果 URL 中包含 * 或者 # 字符,并且當這些字符都在電話號碼后面時,FaceTime app會忽略他們 。如果你的 app 收到用戶或者未知來源的 URL 字符串,你可以使用 NSString 類中的 stringByAddingPercentEscapesUsingEncoding: 方法來轉義后在進行打開。
Use the sms scheme to compose a text message and specify a recipient.
使用 sms scheme 來編寫短信并指定接收人。
The sms scheme is used to launch the Messages app. The format for URLs of this type is “ sms: phone ”, where phone is an optional parameter that specifies the target phone number of the SMS message. This parameter can contain the digits 0 through 9 and the plus ( + ), hyphen ( - ), and period ( . ) characters. The URL string must not include any message text or other information.
sms scheme 用來啟動 短信 app。這個 URL 的格式是 “ sms: 手機號 ”, 手機號 是一個可選參數,這是用來指定短信發送到誰的手機號上。這個參數里可以包含數字0~9, + , - , . 。這個 URL 字符串中不能包含包括短信文本在內的其他信息。
The following examples show strings formatted for Safari and for native apps.
Use specially formatted URLs to open the Maps app and display directions or locations.
用特定格式的 URL 來打開 地圖 app 并顯示指定方向或者坐標。
The maps URL scheme is used to show geographical locations and to generate driving directions between two points. If your app includes address or location information, you can use map links to open that information in the Maps app in iOS or macOS.
地圖 URL scheme 用來顯示地理位置以及兩個地點之間的導航。如果你的 app 包含地址或者位置信息,你可以使用 map 鏈接在 iOS、macOS 地圖 app 上打開該地址或位置。
Unlike some schemes, map URLs do not start with a “maps” scheme identifier. Instead, map links are specified as regular http links and are opened either in Safari or the Maps app on the target platform.
map URL 不像其他一些 scheme 使用 "maps" 開頭。取而代之的是使用常規的 http 鏈接,并在 Safari 或者其他平臺的 地圖 app 中打開。
Table 5-1 lists the supported parameters along with a brief description of each.
表格 5-1 列舉了每個支持的參數以及其簡要說明。
Table 5-1 Supported Apple Maps parameters
You can use the maps URL scheme to help the user:
你可以使用地圖 URL scheme 幫助用戶完成下面這些操作:
To perform a search, supply a properly encoded URL string as the value of the q parameter. For example:
使用一個經過編碼的正確的URL字符串作為 q 參數的值來執行搜索。舉個例子:
To specify a location for search, you can supply a value for the near parameter, or combine the sll parameter with either the z or sspn parameters. You can also set the map type using the t parameter, as shown here:
在搜索指定位置時,你可以使用 near 參數,或者結合 z 或者 sspn 和 sll 參數共同使用。當然你也可以使用 t 參數來指定地圖類型,比如這樣:
;sll=50.894967,4.341626z=10t=s
To provide navigation directions from one location to another, supply the start and destination addresses in the saddr and daddr parameters as shown below. You can also supply much more detail for the start and destination addresses than is shown here.
使用 saddr 和 daddr 參數來指定起始以及目的地位置,從而提供導航功能。你還可以提供比如下示例中更多的詳細參數。
;daddr=San+Francisco
To specify a transport type, you can use the dirflg parameter as shown here:
如下所示,你可以使用 dirflg 參數指定交通方式:
;daddr=San+Franciscodirflg=r
You can omit the start address when you want to provide directions “from here.” The following example shows a search from here that provides driving directions in a hybrid map.
當你想從當前位置開始查詢線路時,你可以忽略起始位置參數。下面這個例子展示了在混合地圖中使用駕車到達指定地點的線路。
;dirflg=dt=h
To display a specific location, use the ll parameter to center the map at the specified position as shown here:
要顯示特定的位置,那么使用 ll 參數來指定地圖中心點的坐標,如下所示:
Another way to display a location is to specify an address, such as:
另一種顯示特定位置的方式是使用指定的地址,如下所示:
If you use both the ll and address parameters, ll takes precedence over address . If you include a name in the value of the q parameter, Maps tries to match the name at the specified location.
如果你同時使用了 ll 和 addres 參數,那么會優先使用 ll 參數。如果你的參數中包含了 q 參數,那么 地圖 app 會嘗試在指定位置處匹配這個名稱。
Use specially formatted URLs to open iTunes and display items in the iTunes Music Store.
用特定格式的 URL 來打開 iTunes app 并顯示 iTunes 音樂商店中的指定項目。
The iTunes URL scheme is used to link to content on the iTunes Music Store. The iTunes URL format is complicated to construct, so you create it using an online tool called iTunes Link Maker. The tool allows you to select a country destination and media type, and then search by song, album, or artist. After you select the item you want to link to, it generates the corresponding URL.
iTunes URL scheme 用來鏈接到 iTunes 音樂商店。由于 iTunes URL 的格式比較復雜,所以你可以使用 iTunes Link Maker 這個在線工具來創建。通過該工具,你可以對國家、媒體類型進行篩選并搜索歌曲、專輯或藝術家。當你選擇了項目后會生成相應的 URL 。
The following examples show the strings you would use in Safari and in a native iOS app to link to a song on the iTunes Music Store. The HTML example includes the complete link returned by the iTunes Link Maker tool, which includes a link to any appropriate artwork for the target link.
下面這個例子展示了一個在 Safari 和 原生 iOS app 中可以使用的 URL 字符串。 HTML 例子中就包含了一個使用 iTunes Link Maker 工具生產的指向合適圖片的鏈接。
;id=156093462s=143441
For more information on creating iTunes links, see iTunes Link Maker FAQ . That webpage contains a link to the iTunes Link Maker tool.
有關 iTunes 鏈接 的詳細格式方案信息,請參閱 iTunes Link Maker FAQ 。該網站中包含了 iTunes Link Maker 工具的鏈接。
Use specially formatted URLs to open YouTube videos in Safari.
在 Safari 中使用指定格式的 URL 打開 YouTube 視頻。
The YouTube URL scheme is used to connect to the YouTube website to play the specified video. If your app links to YouTube content, you can use this scheme to play videos from your app.
YouTube URL scheme 用來打開 YouTube 網站并播放指定的視頻。如果你的 app 有鏈接到 YouTube 的內容,那么你可以從 app 中跳轉并播放視頻。
Unlike some schemes, YouTube URLs do not start with a “youtube” scheme identifier. Instead, they are specified as regular http links but are targeted at the YouTube server. The following examples show the basic strings you would use in Safari and in an app to show a YouTube video. In each example, you would need to replace the VIDEO_IDENTIFIER value with the identifier of the video you wanted to display:
YouTube URL 并不像其他 scheme 一樣以 "youtube" 開頭。而是使用指向 YouTube 服務的常規 http 鏈接。以下例子中展示了在 Safari 和 app 中用來展示 YouTube 視頻的基本字符串。在每個例子中你需要將 VIDEO_IDENTIFIER 替換成你想要播放的視頻 id :
看app的urlsc的方法:
1、iPhone手機。將下載下來的ipa文件,直接解壓。以抖音為例,進入目錄\抖音短視頻_7.7.0(正版)\Payload\Aweme.app\,打開Info.plist文件。搜索CFBundleURLName,其中里就是對應的scheme,比如抖音的就是snssdk1128://。
2、安卓。反編譯apk。打開AndroidManifest.xml,搜索scheme或者android.intent.action.VIEW根據對應的Activity名稱aweme,可以定位到:snssdk1128://了,就在反編譯的內容里搜一下這個就能搜到所有的URLscheme了。
Steam這樣搜索雙人游戲:
直接登錄scheme,然后打開搜索篩選雙人游戲,就可以搜雙人游戲
我來說兩句