GVKun编程网logo

iPhone / iPad的.如何从Safari中的链接启动应用程序?(怎么用safari打开链接)

7

如果您对iPhone/iPad的.如何从Safari中的链接启动应用程序?和怎么用safari打开链接感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解iPhone/iPad的.如何从Safari

如果您对iPhone / iPad的.如何从Safari中的链接启动应用程序?怎么用safari打开链接感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解iPhone / iPad的.如何从Safari中的链接启动应用程序?的各种细节,并对怎么用safari打开链接进行深入的分析,此外还有关于@ font-face不嵌入移动Safari(iPhone / iPad)、App Icons on iPad and iPhone(iPad和iPhone应用程序图标)、ios – 新iPad显示iphone应用程序启动图像作为应用程序图标,而不是应用程序图标图像、iPad / iPhone Safari中明显的HTML处理错误?的实用技巧。

本文目录一览:

iPhone / iPad的.如何从Safari中的链接启动应用程序?(怎么用safari打开链接)

iPhone / iPad的.如何从Safari中的链接启动应用程序?(怎么用safari打开链接)

我有一个应用程序,我希望在点击时显式启动,或者在iPad或iPhone上运行的Safari中的网页上单击参数化URL.

有人可以为我描绘方法和/或指向相关文档吗?非常感谢.

干杯,
道格

解决方法

您基本上需要在Info.plist中注册自己的URL方案,您的应用程序才可以启动.如果您想在从URL启动时微调应用程序行为,您可以解析作为URL的一部分传递给您的应用程序的参数,并根据这些参数做任何您想做的事情.

Here’s the official Apple guide about the same topic.

@ font-face不嵌入移动Safari(iPhone / iPad)

@ font-face不嵌入移动Safari(iPhone / iPad)

我使用@ font-face(来自FontSquirrel的CSS)在移动网站上嵌入字体.当我在桌面Safari或Chrome中预览时,字体嵌入不错,但它们不会出现在iPhone / iPad上的移动Safari中.我没有任何错误,我无法弄清楚出了什么问题.这是我的CSS有任何想法吗?

@font-face {
    font-family: 'JottingRegular';
    src: url('../fonts/jotting_regular-webfont.eot');
    src: local('☺'),url('../fonts/jotting_regular-webfont.woff') format('woff'),url('../fonts/jotting_regular-webfont.ttf') format('truetype'),url('../fonts/jotting_regular-webfont.svg#webfonttEfFltbI') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JottingBold';
    src: url('../fonts/jotting_bold-webfont.eot');
    src: local('☺'),url('../fonts/jotting_bold-webfont.woff') format('woff'),url('../fonts/jotting_bold-webfont.ttf') format('truetype'),url('../fonts/jotting_bold-webfont.svg#webfontJpUFTHYS') format('svg');
    font-weight: normal;
    font-style: normal;
}

解决方法

好的,我想出来,将来会记录任何有这个问题的人.我从Font Squirrel复制了CSS,然后我需要重新下载实际的字体文件.我不认为这会改变CSS中的任何东西,但事实证明,SVG字体(由移动浏览器使用)都具有在字体文件和CSS中引用的ID.

所以,在:

url('../fonts/jotting_regular-webfont.svg#webfonttEfFltbI') format('svg')

webfonttEfFltbI是字体编号.我在文本编辑器中打开SVG字体文件,并在文件顶部附近的下一行找到新的ID.

<font id="webfontC6xdxB57" horiz-adv-x="972" >

在CSS中替换哈希标签后的id修复了问题.

App Icons on iPad and iPhone(iPad和iPhone应用程序图标)

App Icons on iPad and iPhone(iPad和iPhone应用程序图标)

https://developer.apple.com/library/ios/#qa/qa1686/_index.html

Technical Q&A QA1686

App Icons on iPad and iPhone

Q: How are the icon files in my application bundle used on iPad and iPhone?

A: Below are guidelines for handling icon files for iPhone-only apps,iPad-only apps,and universal apps.

Important: Icons marked with "required" must be supplied in your application bundle.

Note: iTunesArtwork icon file should be in png format,but name it without the .png extension.

iPhone-only Apps

Include the following in your application's Resources group in the Xcode project:

Table 1  iPhone-only apps icon requirements.

Image Size (px)

File Name

Used For

required Status

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

57x57

Icon.png

App Store and Home screen on iPhone/iPod touch

required

114x114

Icon@2x.png

Home screen for iPhone 4 High Resolution

Optional but recommended

72x72

Icon-72.png

Home screen for iPad compatibility

Optional but recommended

29x29

Icon-Small.png

Spotlight and Settings

Optional but recommended

50x50

Icon-Small-50.png

Spotlight for iPad compatibility

Recommended if you have a Settings bundle,otherwise optional but recommended

58x58

Icon-Small@2x.png

Spotlight and Settings for iPhone 4 High Resolution

Recommended if you have a Settings bundle,otherwise optional but recommended

Your Resources group should look similar to figure 1:

figure 1  Add files to Resources group

Except for iTunesArtWork icon,list the names of each of these files in theIcon files entry in the Info.plist. Follow the steps in "Add Icon files in Info.plist" section below. Seefigure 4.

Back to Top

iPad-only Apps

Include the following in your application's Resources group in the Xcode project:

Table 2  iPad-only apps icon requirements.

Image Size (px)

File Name

Used For

required Status

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

72x72

Icon-72.png

App Store and Home screen on iPad

required

50x50

Icon-Small-50.png

Spotlight on iPad

Optional but recommended

29x29

Icon-Small.png

Settings on iPad

Recommended if you have a Settings bundle,otherwise optional but recommended

Except for iTunesArtWork icon,list the names of each of these files in theIcon files entry in the Info.plist. Follow the steps in "Add Icon files in Info.plist" section below. Seefigure 5.

Back to Top

Universal Apps

Include the following in your application's Resources group in the Xcode project:

Table 3  Universal apps icon requirements.

Image Size (px)

File Name

Used For

required Status

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

57x57

Icon.png

App Store and the Home screen on iPhone/iPod touch

required

114x114

Icon@2x.png

Home screen for iPhone 4 High Resolution

Optional but recommended

72x72

Icon-72.png

App Store and Home screen on iPad

required

50x50

Icon-Small-50.png

Spotlight on iPad

Optional but recommended

29x29

Icon-Small.png

Settings on iPad and iPhone,and Spotlight on iPhone

Recommended if you have a Settings bundle,list the names of each of these files in theIcon files entry in the Info.plist. Follow the steps in "Add Icon files in Info.plist" section below. Seefigure 4.

Back to Top

Add Icon files in Info.plist

To add the Icon files entry you will need to manually edit your Info.plist.

Open your Info.plist in Xcode,and locate the "Icon file" entry. Click on the plus (+) button at the end of the entry to make a new key entry. as shown infigure 2.

figure 2  Add a new entry under "Icon file" key

Then,type "Icon files" in the key column (notice the "s" added),or choose "Icon files" from the drop down list,as shown infigure 3.

figure 3  Add "Icon files" key in Info.plist

Next,turn down the disclosure triangle on "Icon files" and add the entries for the icons for your application,as shown infigure 4 and figure 5:

figure 4  Add icon file entries for iPhone-only or Universal apps.

figure 5  Add entries for iPad icon files.

Note: If you don't provide one of the listed optional icons,the system will automatically scale one of your existing icons to an appropriate size. However,it is strongly recommended that your application supply all the icons listed with specific sizes needed.

For additional information,see the Build-Time Configuration Details section in the iOS Application Programming Guide.

For details on using the CFBundleIconFiles key,see Information Property List Key Reference. For information on creating your applications icons,see the Application Icons section of theiOS Human Interface Guidelines.

Back to Top

Document Revision History


Date Notes 2011-07-14

After iOS 4.3,order doesn't matter in the icon arrangement. Added links to related references.

2010-07-14

Fixed outdated "Add Icon files in Info.plist" section.

2010-07-12

Updated for iOS 4 requirements.

2010-04-09

New document that explains how the icon files in an application bundle are used on iPad and iPhone.




© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-07-14)


https://developer.apple.com/library/ios/#qa/qa1686/_index.html

总结

以上是小编为你收集整理的App Icons on iPad and iPhone(iPad和iPhone应用程序图标)全部内容。

如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。

iOS相关文章

借助辅助工具appuploader iOS应用上架流程
一般在接外包的时候, 通常第三方需要安装你的app进行测试(这时候你的app肯定是还没传到app store之前)。
Flutter中实现整个App变为灰色
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应用变灰了。那么接下来我们看一下Flutter是如何实现的。Flutter中实现整个App变为灰色在Flutter中实现整个App变为灰色是非常简单的,只需要在最外层的控件上包裹ColorFiltered,用法如下:ColorFiltered(颜色过滤器)看名字就知道是增加颜色滤镜效果的,ColorFiltered( colorFilter:ColorFilter.mode(Colors.grey, BlendMode.
【Cocos creator】Cocos creator介绍和入门
Cocos creator介绍和入门
Vue3使用axios的配置教程详解
vue3.0 axios封装
flutter升级/版本切换
flutter升级/版本切换
【C++入门】文件流(fstream)介绍和使用
(1)在C++11标准时,open函数的文件路径可以传char指针也可以传string指针,而在C++98标准,open函数的文件路径只能传char指针;(2)open函数的第二个参数是打开文件的模式,从函数定义可以看出,如果调用open函数时省略mode模式参数,则默认按照可读可写(ios_base:in | ios_base::out)的方式打开;(3)打开文件时的mode的模式是从内存的角度来定义的,比如:in表示可读,就是从文件读数据往内存读写;out表示可写,就是把内存数据写到文件中;
iOS App页面置灰
文章目录方法一:分别将图片和文字置灰UIImage转成灰度图UIColor转成灰度颜色方法二:给App整体添加灰色滤镜参考App页面置灰,本质是将彩色图像转换为灰度图像,本文提供两种方法实现,一种是App整体置灰,一种是单个页面置灰,可结合具体的业务场景使用。方法一:分别将图片和文字置灰一般情况下,App页面的颜色深度是24bit,也就是RGB各8bit;如果算上Alpha通道的话就是32bit,RGBA(或者ARGB)各8bit。灰度图像的颜色深度是8bit,这8bit表示的颜色不是彩色,而是256
iOS黑(灰)白化实现方案---记录
领导让调研下黑(灰)白化实现方案,自己调研了两天,根据网上资料,做下记录只是学习过程中的记录,还是写作者牛逼
  • • 借助辅助工具appuploader iOS应用上架流
  • • Flutter中实现整个App变为灰色
  • • 【Cocos creator】Cocos creator介绍和
  • • Vue3使用axios的配置教程详解
  • • flutter升级/版本切换
  • • 【C++入门】文件流(fstream)介绍和使
  • • iOS App页面置灰
  • • iOS黑(灰)白化实现方案---记录
  • • 让学前端不再害怕英语单词(二)
  • • 电视剧里的代码真能运行吗?
Flutterandroidiosswift抖音cocos2d小米cocos2dx三国杀kotlin-coroppococosandroid-jexcodeandroid-liaugmented-美好mutateandroid-gr加到arkitreact-naticnnandroid-cocrashlytic耳机java-nativexoplayerstockandroid-ar壁纸react-natiandroid-daandroid-wowatchosandroid-ca笔记本电脑buildozer装备android-al
  • 友情链接:
  • 菜鸟教程
  • 前端之家
  • 编程小课
  • 小编
  • -
  • 我要投稿
  • -
  • 广告合作
  • -
  • 联系我们
  • -
  • 免责声明
  • -
  • 网站地图
版权所有 © 2018 小编 闽ICP备13020303号-8
微信公众号搜索 “ 程序精选 ” ,选择关注!
微信公众号搜"程序精选"关注
微信扫一扫可直接关注哦!

ios – 新iPad显示iphone应用程序启动图像作为应用程序图标,而不是应用程序图标图像

ios – 新iPad显示iphone应用程序启动图像作为应用程序图标,而不是应用程序图标图像

我的应用程序仅针对iPhone构建,在具有视网膜显示功能的新iPad中无法正确显示Icon.安装应用程序时,应用程序图标显示正确.但完成安装后,应用程序的启动图像显示为图标,而不是图标图像.
由于它不是通用应用程序,似乎没有地方可以为 Xcode中的iPad设备配置一些东西.

在包括3G,4和4S以及旧iPad的iPhone中,我没有这个问题.

解决方法

我偶然发现了我做错了什么.在app info plist文件中,Default.png和Default@2x.png已添加到“图标文件”条目中.我不知道为什么.我想我之前奇怪地操纵过Xcode.

iPad / iPhone Safari中明显的HTML处理错误?

iPad / iPhone Safari中明显的HTML处理错误?

这让我很温暖..

如果您查看以下简单的网页,包括标题….意味着在Arduino中进行嵌入式开发(尽管这个问题与后者没有任何关系).

<!DOCTYPE HTML>
<html><head><Meta http-equiv='cache-control' content='no-cache' />
<link href='http://www.scargill.net/embed/embed.css' rel='stylesheet' /><title>strange page</title>
</head><body>
<br/>Time: 09:24:07 03/04/2012<br/>
<br/>Time: 09:24:07 03\/04\/2012<br/>
</script>
</body></html>

显示时间和日期的两条重要线路……第一条是简单的时间和日期显示,第二条是绝望的调试尝试……你可以忽略它……

在任何浏览器上,这显示正常…我在http://www.scargill.net/eh.htm的副本

iPhone或iPad上的任何浏览器都不适用于Safari ……第一行显示的时间和日期都会发生,它会在一段时间内完成并停止.

这适用于使用其他浏览器的iPad,但不适用于Safari.

任何人都可以提供帮助 – 为什么在iPad和iPhone上简单地显示时间和日期?

解决方法

看起来iOS上的Safari认为日期的一部分是电话号码并且正在尝试解析它.

您可以通过将以下内容添加到< head>来停止Safari查找电话号码.部分:

<Meta name="format-detection" content="telephone=no" />

希望这可以解决您的问题.

今天关于iPhone / iPad的.如何从Safari中的链接启动应用程序?怎么用safari打开链接的介绍到此结束,谢谢您的阅读,有关@ font-face不嵌入移动Safari(iPhone / iPad)、App Icons on iPad and iPhone(iPad和iPhone应用程序图标)、ios – 新iPad显示iphone应用程序启动图像作为应用程序图标,而不是应用程序图标图像、iPad / iPhone Safari中明显的HTML处理错误?等更多相关知识的信息可以在本站进行查询。

本文标签: