icon

 
  •     
  •     
  •    
    • 博客访问: 305291 
    • 博文数量: 87 
    • 博客积分: 1913 
    • 博客等级: 上尉 
    • 技术积分: 838 
    • 用 户 组: 普通用户
    • 注册时间: 2008-03-14 21:29 
    文章分类

    全部博文(87)

    文章存档

    2011年(30)

    2010年(26)

    2009年(21)

    2008年(10)

    我的朋友
    微信关注

    IT168企业级官微



    微信号:IT168qiye



    系统架构师大会



    微信号:SACC2013

    订阅

    分类: LINUX

    Question: As a graphic designer I often have to design icons, logos, launch and background images for iPhone applications. Latest apps run on iPhone 3G, iPhone 3GS, iPod Touch 3, iPhone 4GS and iPad and there is a big boom and confusion in this area. I use Adobe Photoshop CS4. What size and type of images do I have to create for such a project?

    Answer: We use the following table for our iPhone/iPad projects when the OS target is 3.2 or above. The table is updated for iOS 4.3 and Xcode 4:

    Name Size (pixels) Platform
    Icon.png 57 x 57 Universial application icon
    Icon-settings.png 29 x 29 Universial application icon for settings area. Alternative name: Icon-Small.png
    Icon~ipad.png 72 x 72 iPad application icon. Alternative name: Icon-72.png Add some smaller (iPad doc: 64×64, other optional 32×32, 24×24, 16×16) custom icons to your project. See comments.
    Icon-spot~ipad.png 50 x 50 iPad icon for spotlight search. Alternative name: Icon-Small-50.png iPhone OS trims 1 pixel from each side and adds a drop shadow. The actual size is 48×48 pixels.
    iTunesArtwork.png 512 x 512 Universial application icon for iTunes App Store. Uploaded separately to iTunes. It’s included in the app bundle too, file name: iTunesArtwork. In an iPad application iPhone OS uses this image to generate the large (320×320) document icon if it is not supplied otherwise.
    Default.png 320 (w) x 480 (h) iPhone/iPod 2, 3 portrait launch image
    Default@2x.png 640 (w) x 960 (h) iPhone 4 hi-res portrait launch image
    Default~ipad.png 768 (w) x 1004 (h) iPad. Specifies the default portrait launch image. This image is used if a more specific image is not available. Use full size template (768×1024) to design this launch image. The 20 pixels height statusbar is on by default and occupies the top of the screen, aka the 1004 rows vs. 1024.
    Optional icons and images:
    Icon@2x.png 114 x 114 iPhone 4 hi-res application icon
    Icon-settings@2x.png 58 x 58 iPhone 4 hi-res application icon for settings/search area
    Icon-doc.png 22 (w) x 29 (h) Universial document icon
    Icon-doc@2x.png 44 (w) x 58 (h) iPhone 4 hi-res document icon
    Icon-doc~ipad.png 64 x 64 iPad document icon (small)
    Icon-doc320~ipad.png 320 x 320 iPad document icon (large)
    Background-xxx.png 320 (w) x 480 (h)
    640 (w) x 960 (h)
    768 (w) x 1024 (h)
    iPhone/iPod Touch 2, 3 background image,
    iPhone 4 background image, full size
    iPad background image, full size. For most projects the status bar is hidden, so use full screen size by default.
    Default-PortraitUpsideDown~ipad.png 768 (w) x 1004 (h) iPad. Specifies an upside-down portrait version of the launch image. The height of this image should be 1004 pixels and the width should be 768. This file takes precedence over the Default-Portrait.png image file for this specific orientation.
    Default-LandscapeLeft~ipad.png 1024 (w) x 748 (h) iPad. Specifies a left-oriented landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. This file takes precedence over the Default-Landscape.png image file for this specific orientation.
    Default-LandscapeRight~ipad.png 1024 (w) x 748 (h) iPad. Specifies a right-oriented landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. This file takes precedence over the Default-Landscape.png image file for this specific orientation.
    Default-Portrait~ipad.png 768 (w) x 1004 (h) iPad. Specifies the generic portrait version of the launch image. The height of this image should be 1004 pixels and the width should be 768. This image is used for right side-up portrait orientations and takes precedence over the Default~ipad.png image file. If a Default-PortraitUpsideDown.png image file is not specified, this file is also used for upside-down portrait orientations as well.
    Default-Landscape~ipad.png 1024 (w) x 748 (h) iPad. Specifies the generic landscape version of the launch image. The height of this image should be 748 pixels and the width should be 1024. If a Default-LandscapeLet.png or Default-LandscapeRight.png image file is not specified, this image is used instead. This image takes precedence over the Default.png image file.

    Typical icons are PNG files with 90 degree corners, but no transparency, no layers, and set to 72 PPI.  iPhone OS applies rounded corners, optionally shine, and other effects. If you have added these effects let your programmers know it. When you do not let the iPhone/iPad OS to apply the gloss to your icons, developers must add a key to info.plist calledUIPrerenderedIcon and make it checked. The standard bit depth is 24 bits + 8-bit alpha channel.

    Designers and programmers alike understand now that the sizes of items on iPhone/iPad screens are not constants. Differences in screen size and zoom functionality are common place, but PNG format and 72 PPI is still the default. (PNG discards pixel density. Most image editors, including Adobe Photoshop, assume that an image’s pixel density is 72 if the information is not stored.)

    iPad icons can be tricky. Some designers release the standard iPad icons only but fail to include some crisp small size icons as options for OS. Add some tiny iPad icons to your project in the sizes of 64×64, 32x32px, 24x24px and 16x16px. Programmers know how to include these files (see Info.plist).

    You should know that when the user taps on the main application icon the app immediately starts to load. It’s important to make the launch time as short as possible. Every iPhone/iPad app should ship with a launch image which mimicks the interface by using a static image. The launch image should be as small a file as possible to ensure quick loading. Do not create image files in the megabyte territory.

    Notes for developers:

    In the Info.plist file developers specify the orientations the application supports along with the related launch images. If missing, they must add these lines:

    1
    2
    3
    4
    5
    6
    7
        <key>UISupportedInterfaceOrientations</key>     
        <array>
                 <string>UIInterfaceOrientationPortrait</string>
                 <string>UIInterfaceOrientationPortraitUpsideDown</string>
                 <string>UIInterfaceOrientationLandscapeLeft</string>
                 <string>UIInterfaceOrientationLandscapeRight</string>
        </array>

    Developers may change previous naming conventions, as we did, and use their own custom name of icon and launch image files. We usually want to configure our iPad applications differently from iPhone versions, so we specify device-specific values for Info.plist keys. For example:

    Image and icon settings in info.plist for iPhone/iPad app

    Sample icon and launch image settings in Info.plist for universal applications. Platform: iOS 3.2+

    iOS documentation: “The image files used to represent icons and launch images must all reside in the root level of your bundle. How you identify these images to the system can vary, but the recommended way to specify your application icons is to use the CFBundleIconFiles key… In addition to the icons and launch image at the top level of your bundle, you can also include localized versions of those images in your application’s language-specific project subdirectories”. The filenames can be anything you want, but all image files must be in the PNG format.

    1. If your iPhone application supports running in iOS 3.1.x or earlier, you cannot use the CFBundleIconFiles key to specify your icon files. You must create icons of the same size as listed in our table, but each image must be named as follows:

    Icon.png – Application icon on iPhone or iPod touch
    Icon-72.png – iPad application icon in a Universal application
    Icon-Small.png - Search results and Settings icon on iPhone and iPod touch
    Icon-Small-50.png – Search results in iPad applications

    Since version 3.2 if you specify an Icon-Small.png or Icon-Small-50.png file in your bundle, the system prefers those icon files over the ones in the CFBundleIconFiles key and the iOS prefers the application icon defination in the CFBundleIconFiles key over any other one.

    2. The iOS is finally making the move into resolution independence and your image objectsaren’t measured in pixels, but in points. Points don’t always correspond to pixels. The screen size of the iPhone 3 is 480×320, in both points an pixels. The iPhone 4′s screen size is 960×640 in pixels, but its logical screensize still remains at 480×320 in points. Keep your frame, point and size values in their original values and still support larger resolution devices. On iPhone 4 you may insert “@2x” in the name of the image file and it will be used automatically on the higher resolution devices. Use like “button1back@2x.png”. The simulator of XCode 3.2.6 still reports screen size of 320×480, but see what you have done… on a hires device.

    Check out UIScreen class reference for properties of bounds and currentMode. The bounds property gives us the rectangle of the screen in points.The currentMode.size property represents the screen size in pixels. For example, since iOS 4, [UIImage imageWithContentsOfFile: ] recognises when an image has the ’2x’ version and displays it correctly.

    3. In the Info.plist, at the CFBundleIconFiles key, if you do not specify the filename extensions for launch and icon images, you can avoid listing all of the 2x variations, and the Info.plist would look like this:

    Image and icon settings in info.plist for iPhone/iPad app

    Sample icon image settings in Info.plist for universal applications. Platform: iOS 4+

    iOS 4+ comment: As you can see, the hi-res version of the same launch image should be named launchimage@2x.png. If you did not specify a custom launch image name, these files must be named Default.png and Default@2x.png, respectively. If you include a filename extension, you must explicitly add the names of all image files. For universal iPhone/iPad apps the orientation-specific launch image filenames can be as follows:

    1
    2
    3
    4
    5
    6
    <basename><orientation_modifier:-Portrait or -Landscape><scale_modifier: @2x><device_modifier: ~ipad or ~iphone>.png , like

    launchimage-Portrait.png, 
    launchimage-Portrait@2x.png,
    launchimage-Portrait~ipad.png, 
    launchimage-Landscape~ipad.png...

    If you do not specify a custom launch image filename, you must use the names of Default-Landscape.png and Default-Portrait.png.

    阅读(1780) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~
    评论热议
    请登录后评论。

    登录 注册


    id="iframeu1625692_0" src="http://pos.baidu.com/acom?rdid=1625692&dc=2&di=u1625692&dri=0&dis=0&dai=1&ps=3469x305&dcb=BAIDU_UNION_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1455765245373&ti=Icons%20and%20launch%20images%20for%20iPhone%20and%20iPad%20apps-F.U.Moon-Ch&ari=1&dbv=0&drs=1&pcs=1430x914&pss=1430x3469&cfv=20&cpl=7&chi=5&cce=true&cec=UTF-8&tlm=1455736445&ltu=http%3A%2F%2Fblog.chinaunix.net%2Fuid-20676637-id-1746530.html&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DmV-r16bPPjCLrLjo9K54J9YE_TdaG1-zMZdIXZU46jb3nfZS91zS6yotUoQePhXnEeawzDls8DShPCFsv2GyCa%26wd%3D%26eqid%3D8c61cce80013432f0000000456c53482&ecd=1&psr=1920x1080&par=1872x1057&pis=-1x-1&ccd=24&cja=true&cmi=10&col=zh-cn&cdo=-1&tcn=1455765245&qn=48509f476c5b562f&tt=1455765245366.9.301.302" width="468" height="60" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="word-wrap: break-word; border-width: 0px; vertical-align: bottom; margin: 0px;">
    id="iframeu1625694_0" src="http://pos.baidu.com/acom?rdid=1625694&dc=2&di=u1625694&dri=0&dis=0&dai=2&ps=3469x245&dcb=BAIDU_UNION_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1455765245373&ti=Icons%20and%20launch%20images%20for%20iPhone%20and%20iPad%20apps-F.U.Moon-Ch&ari=1&dbv=0&drs=1&pcs=1430x914&pss=1430x3469&cfv=20&cpl=7&chi=5&cce=true&cec=UTF-8&tlm=1455736445&ltu=http%3A%2F%2Fblog.chinaunix.net%2Fuid-20676637-id-1746530.html&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DmV-r16bPPjCLrLjo9K54J9YE_TdaG1-zMZdIXZU46jb3nfZS91zS6yotUoQePhXnEeawzDls8DShPCFsv2GyCa%26wd%3D%26eqid%3D8c61cce80013432f0000000456c53482&ecd=1&psr=1920x1080&par=1872x1057&pis=-1x-1&ccd=24&cja=true&cmi=10&col=zh-cn&cdo=-1&tcn=1455765245&qn=d1a1498f2bc5eedd&tt=1455765245366.16.93.93" width="468" height="60" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="word-wrap: break-word; border-width: 0px; vertical-align: bottom; margin: 0px;">
    资源下载链接为: https://pan.quark.cn/s/abbae039bf2a 无锡平芯微半导体科技有限公司生产的A1SHB三极管(全称PW2301A)是一款P沟道增强型MOSFET,具备低内阻、高重复雪崩耐受能力以及高效电源切换设计等优势。其技术规格如下:最大漏源电压(VDS)为-20V,最大连续漏极电流(ID)为-3A,可在此条件下稳定工作;栅源电压(VGS)最大值为±12V,能承受正反向电压;脉冲漏极电流(IDM)可达-10A,适合处理短暂高电流脉冲;最大功率耗散(PD)为1W,可防止器件过热。A1SHB采用3引脚SOT23-3封装,小型化设计利于空间受限的应用场景。热特性方面,结到环境的热阻(RθJA)为125℃/W,即每增加1W功率损耗,结温上升125℃,提示设计电路时需考虑散热。 A1SHB的电气性能出色,开关特性优异。开关测试电路及波形图(图1、图2)展示了不同条件下的开关性能,包括开关上升时间(tr)、下降时间(tf)、开启时间(ton)和关闭时间(toff),这些参数对评估MOSFET在高频开关应用中的效率至关重要。图4呈现了漏极电流(ID)与漏源电压(VDS)的关系,图5描绘了输出特性曲线,反映不同栅源电压下漏极电流的变化。图6至图10进一步揭示性能特征:转移特性(图7)显示栅极电压(Vgs)对漏极电流的影响;漏源开态电阻(RDS(ON))随Vgs变化的曲线(图8、图9)展现不同控制电压下的阻抗;图10可能涉及电容特性,对开关操作的响应速度和稳定性有重要影响。 A1SHB三极管(PW2301A)是高性能P沟道MOSFET,适用于低内阻、高效率电源切换及其他多种应用。用户在设计电路时,需充分考虑其电气参数、封装尺寸及热管理,以确保器件的可靠性和长期稳定性。无锡平芯微半导体科技有限公司提供的技术支持和代理商服务,可为用户在产品选型和应用过程中提供有
    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值