安卓iphone x launchimagee 144x144的为什么小

扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
下载作业帮安装包
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
13x-x=144怎么解
z小chick忠驳9
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
13x-x=14412x=144x=144÷12x=12
为您推荐:
其他类似问题
1213x-x=14412x=144x=12
(13-1)X=144
扫描下载二维码iOS-OC(400)
App Icons on iPad and iPhone
在iPad和iPhone应用程序图标
/library/ios/qa/qa1686/_index.html
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.
If you don't provide artwork for one of the listed optional icons, the system will automatically scale one of your existing icon images to an appropriate size. It is strongly recommended that your application include artwork for all the icons listed, at the
specific sizes needed.
Prior to&&3.2, icon images were required to follow a strict naming convention.
These legacy names are still listed in the tables below along with example names for the more recent icons. Except for&iTunesArtwork, icon images included in your app can have
arbitrary names.
Note:&iOS ignores the PPI (Pixels Per Inch) of icon images. You may author your icon images at any PPI but their width and height, as measured in pixels,
must match the values in the tables below.
Important:&iTunesArtwork icon images should be in png format, but name them without the .png extension.
Icons for iPhone-only Apps
iPhone-only applications use the following icons. Items marked with &Required& must be included.
Note:&You should include images for the iPad-specific icons even if your app is not a universal app. If available, they will be used when the app is installed
on an iPad.
Table 1&&iPhone-only app icon requirements. (IOS 7--IOS 9)
苹果唯一的应用程序图标要求
iTunesArtwork
iTunes 上Logo
Do not include 不包括
Optional but recommended&可选
iTunesArtwork@2x
iTunes 上Logo 两倍尺寸
Do not include&不包括
Optional but recommended&可选
Icon-60@2x.png
iPhone/iPod Touch 桌面Logo 两倍尺寸
(iPhone 6/5s/5/4s)都是两倍缩放视网膜屏
Required 必须的
Required&必须的
Icon-60@3x.png
iPhone 6 Plus 桌面Logo
三倍缩放视网膜屏
Optional but recommended
Optional but recommended
Icon-76.png
iPad 非视网膜屏 一倍尺寸
Optional but recommended
Optional but recommended
Icon-76@2x.png
iPad&视网膜屏 两倍尺寸
Optional but recommended
Optional but recommended
Icon-Small-40.png
Spotlight (IOS 9特有的桌面APP搜索功能)&非视网膜屏 一倍尺寸
Optional but recommended
Optional but recommended
Icon-Small-40@2x.png
Spotlight&(IOS 9特有的桌面APP搜索功能)&视网膜屏 两倍尺寸
Optional but recommended
Optional but recommended
Icon-Small-40@3x.png
Spotlight &iPhone 6 Plus 三倍尺寸
Optional but recommended
Optional but recommended
Icon-Small.png
Settings (iPhone 通用设置里面的图标) 一倍
Recommended if you have a Settings bundle, optional otherwise
建议如果你有一个设置包,可选择其他
Recommended if you have a Settings bundle, optional otherwise
建议如果你有一个设置包,可选择其他
Icon-Small@2x.png
Settings (iPhone 通用设置里面的图标) 两倍
Recommended if you have a Settings bundle, optional otherwise
Recommended if you have a Settings bundle, optional otherwise
Icon-Small@3x.png
Settings (iPhone 通用设置里面的图标)&iPhone 6 Plus 三倍尺寸
Recommended if you have a Settings bundle, optional otherwise
Recommended if you have a Settings bundle, optional otherwise
In addition to the above icons, iPhone-only applications with a deployment target of iOS 6.1 or earlier use the following icons. Items marked with &Required& must be included if the application's deployment target is iOS
6.1 or earlier.
Table 2&&iPhone-only app icon requirements (iOS 6.1 and earlier).
iPhone应用程序图标的要求(iOS 6.1及更早版本)。
Home screen on iPhone/iPod touch (iOS 6.1 and earlier)
Icon@2x.png
Home screen on iPhone/iPod Touch with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-72.png
Home screen on iPad (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-72@2x.png
Home screen on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small.png
Spotlight on iPhone/iPod Touch (iOS 6.1 and earlier) and Settings
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
Icon-Small@2x.png
Spotlight on iPhone/iPod Touch with retina display (iOS 6.1 and earlier) and Settings on devices with retina display
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
Icon-Small-50.png
Spotlight on iPad (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small-50@2x.png
Spotlight on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
You can include distinct images for the iPhone and iPad icons in categories where the required sizes are equivalent, for example, Settings.
Icons for iPad-only Apps
iPad-only applications use the following icons. Items marked with &Required& must be included.
iPad的应用程序只使用图标下面, &Required& &是必要的
Table 3&&iPad-only app icon requirements.(IOS
iPad专用应用程序图标的要求。
iTunesArtwork
Ad Hoc iTunes
Do not include
Optional but recommended
iTunesArtwork@2x
Ad Hoc iTunes on devices with retina display
Do not include
Optional but recommended
Icon-76.png
Home screen on iPad
Icon-76@2x.png
Home screen on iPad with retina display
Optional but recommended
Optional but recommended
Icon-Small-40.png
Spotlight on iPad
Optional but recommended
Optional but recommended
Icon-Small-40@2x.png
Spotlight on iPad with retina display
Optional but recommended
Optional but recommended
Icon-Small.png
Settings on iPad
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
Icon-Small@2x.png
Settings on iPad with retina display
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
In addition to the above icons, iPad-only applications with a deployment target of iOS 6.1 or earlier use the following icons. Items marked with &Required& must be included if the application's deployment target is iOS 6.1
or earlier.
Table 4&&iPad-only app icon requirements (iOS 6.1 and earlier).
iPad应用程序图标的要求(iOS 6.1及更早版本)
Icon-72.png
Home screen on iPad (iOS 6.1 and earlier)
Icon-72@2x.png
Home screen on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small-50.png
Spotlight on iPad (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small-50@2x.png
Spotlight on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icons for Universal Apps
Universal applications use the following icons. Items marked with &Required& must be included.
Table 5&&Universal app icon requirements.
iTunesArtwork
App list in iTunes
Do not include
Optional but recommended
iTunesArtwork@2x
App list in iTunes for devices with retina display
Do not include
Optional but recommended
Icon-60@2x.png
Home screen on iPhone/iPod Touch with retina display
Icon-60@3x.png
Home screen on iPhone 6 Plus
Optional but recommended
Optional but recommended
Icon-76.png
Home screen on iPad
Icon-76@2x.png
Home screen on iPad with retina display
Optional but recommended
Optional but recommended
Icon-Small-40.png
Optional but recommended
Optional but recommended
Icon-Small-40@2x.png
Spotlight on devices with retina display
Optional but recommended
Optional but recommended
Icon-Small-40@3x.png
Spotlight on iPhone 6 Plus
Optional but recommended
Optional but recommended
Icon-Small.png
Recommended if you have a Settings bundle, optional otherwise
Recommended if you have a Settings bundle, optional otherwise
Icon-Small@2x.png
Settings on devices with retina display
Recommended if you have a Settings bundle, optional otherwise
Recommended if you have a Settings bundle, optional otherwise
Icon-Small@2x.png
Settings on iPhone 6 Plus
Recommended if you have a Settings bundle, optional otherwise
Recommended if you have a Settings bundle, optional otherwise
In addition to the above icons, universal applications with a deployment target of iOS 6.1 or earlier use the following icons. Items marked with &Required& must be included if the application's deployment target is iOS 6.1
or earlier.
Table 6&&Universal app icon requirements (iOS 6.1 and earlier).
Home screen on iPhone/iPod touch (iOS 6.1 and earlier)
Icon@2x.png
Home screen on iPhone/iPod Touch with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-72.png
Home screen on iPad (iOS 6.1 and earlier)
Icon-72@2x.png
Home screen on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small.png
Spotlight on iPhone/iPod Touch (iOS 6.1 and earlier) and Settings
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
Icon-Small@2x.png
Spotlight on iPhone/iPod Touch with retina display (iOS 6.1 and earlier) and Settings on devices with retina display
Recommended if you have a Settings bundle, otherwise optional but recommended
Recommended if you have a Settings bundle, otherwise optional but recommended
Icon-Small-50.png
Spotlight on iPad (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
Icon-Small-50@2x.png
Spotlight on iPad with retina display (iOS 6.1 and earlier)
Optional but recommended
Optional but recommended
附网上整理的资料
iphone6/6+ 更新:
Icon-Small@3x.png & & 87*87
Icon-40@3x.png & & & & & 120*120
Icon-60@3x.png & & & & & 180*180
Icon.png & & & & & & & & & & & &57*57
Icon@2x.png & & & & & & & &114*114
Icon-Small.png & & & & & & & &29*29
Icon-Small@2x.png & & & & & &58*58
Icon-Small-50.png & & & & & &50*50
Icon-Small-50@2x.png & & & &100*100
Icon-72.png & & & & & & & & & &72*72
Icon-72@2x.png & & & & & & & &144*144
Icon-40.png & & & & & & & & & &40*40
Icon-40@2x.png & & & & & & & &80*80
Icon-60.png & & & & & & & & & &60*60
Icon-60@2x.png & & & & & & & &120*120
Icon-76.png & & & & & & & & & &76*76
Icon-76@2x.png & & & & & & & &152*152
LaunchImage
4.0 inch screen:
Default-568h@2x.png (old 640x1136 ~ for iPhone 5)
4.0 inch screen:&
LaunchImage-700-568h@2x.png (new 640x1136 ~ for iPhone 5)
4.7 inch screen:&
LaunchImage-800-667h@2x.png (750x1334 ~ for iPhone 6)
5.5 inch screen:&
LaunchImage-800-Portrait-736h@3x.png ( ~ for iPhone 6 Plus Portrait)
5.5 inch screen:&
LaunchImage-800-Landscape-736h@3x.png ( ~ for iPhone 6 Plus Landscape)
Retina iPad:
Default-Portrait@2x~ipad.png ( ~ for Retina &iPad Portrait)
Retina iPad:
Default-Landscape@2x~ipad.png ( ~ for Retina &iPad Landscape)
iPad Mini/iPad:
Default-Portrait~ipad.png (768x1024 ~ for &iPad Portrait)
iPad Mini/iPad:
Default-Landscape~ipad.png ( ~ for &iPad Landscape)
iPhone Portrait iOS8 & & & &Retina HD 5.5 & & & &&LaunchImage-800-Portrait-736h@3x.png & & & &&1242 × 2208 pixels
iPhone Portrait iOS8 & & & &Retina HD 4.7 & & & &&LaunchImage-800-667h@2x.png & & & & & & & & & &&750 × 1334 pixels
iPhone Landscape iOS8 & &Retina HD 5.5 & & & &&LaunchImage-800-Landscape-736h@3x.png & &&2208 × 1242 pixels
iPhone Portrait iOS 7,8 & & 2x & & & & & & & & & & & &&Default@2x.png & & & & & & & & & & & & & & & & & & & & & & &640 × 960 pixels
iPhone Portrait iOS 7,8 & & Retina 4 & & & & & & & &&LaunchImage-700-568h@2x.png& & & & & & & & & & &&640 × 1136 pixels &
iPad Portrait&iOS 7,8 & & & & & &1x & & & & & & & & & & &Default-Portrait~ipad.png & & & & & & & & & & & & & & & &768 × 1024 pixels
iPad Portrait&iOS 7,8 & & & & & &2x & & & & & & & & & & &Default-Portrait@2x~ipad.png& & & & & & & & & & & & &1536 × 2048 pixels
iPad Landscape&iOS 7,8 & & & &1x & & & & & & & & & & &Default-Portrait~ipad.png & & & & & & & & & & & & & &&1024 × 768 pixels
iPad Landscape&iOS 7,8 & & & &2x & & & & & & & & & & &Default-Portrait@2x~ipad.png& & & & & & & & & & & &1536 × 2048 pixels
iPhone&Portrait iOS 5,6 & & & &1x & & & & & & & & & & &&Default.png& & & & & & & & & & & & & & & & & & & & & & & & & &320 × 480 pixels
iPhone&Portrait iOS 5,6 & & & &2x & & & & & & & & & & &&Default@2x.png& & & & & & & & & & & & & & & & & & & & & & &640 × 960 pixels
iPhone&Portrait&iOS 5,6 & & & &Retina 4& & & & & & &&Default-568h@2x.png& & & & & & & & & & & & & & & & & & &640 × 1136 pixels
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:284508次
积分:8043
积分:8043
排名:第2827名
原创:327篇
转载:226篇
评论:39条
(8)(25)(2)(56)(37)(1)(26)(12)(28)(58)(24)(13)(28)(13)(18)(33)(45)(83)(15)(5)(8)(15)
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'2014年,苹果又出了两种尺寸,这里标注下,以后再有新尺寸,再继续更新。
Table 39-1Size (in pixels) of custom icons and images
iPhone 6 Plus (@3x)
iPhone 6 and iPhone 5 (@2x)
iPhone 4s (@2x)
iPad and iPad mini (@2x)
iPad 2 and iPad mini (@1x)
App icon (required&for all apps)
App icon for the App Store (required&for all apps)
1024 x 1024
1024 x 1024
1024 x 1024
1024 x 1024
1024 x 1024
Launch file or image (required&for all apps)
Use a launch file (see)
For iPhone 6, use a launch file (see&)
For iPhone 5, 640 x 1136
1536 x 2048 (portrait)
2048 x 1536 (landscape)
768 x 1024 (portrait)
1024 x 768 (landscape)
Spotlight search results icon (recommended)
Settings icon (recommended)
Toolbar and navigation bar icon (optional)
About 66 x 66
About 44 x 44
About 44 x 44
About 44 x 44
About 22 x 22
Tab bar icon (optional)
About 75 x 75 (maximum: 144 x 96)
About 50 x 50 (maximum: 96 x 64)
About 50 x 50 (maximum: 96 x 64)
About 50 x 50 (maximum: 96 x 64)
About 25 x 25 (maximum: 48 x 32)
Default Newsstand cover icon for the App Store (required&for Newsstand apps)
At least 1024 pixels on the longest edge
At least 1024 pixels on the longest edge
At least 1024 pixels on the longest edge
At least 1024 pixels on the longest edge
At least 512 pixels on the longest edge
Web clip icon (recommended for web apps and websites)
iphone6/6+ 更新:
Icon-Small@3x.png & & 87*87
Icon-40@3x.png & & & & & 120*120
Icon-60@3x.png & & & & & 180*180
Icon.png & & & & & & & & & & & &57*57
Icon@2x.png & & & & & & & &114*114
Icon-Small.png & & & & & & & &29*29
Icon-Small@2x.png & & & & & &58*58
Icon-Small-50.png & & & & & &50*50
Icon-Small-50@2x.png & & & &100*100
Icon-72.png & & & & & & & & & &72*72
Icon-72@2x.png & & & & & & & &144*144
Icon-40.png & & & & & & & & & &40*40
Icon-40@2x.png & & & & & & & &80*80
Icon-60.png & & & & & & & & & &60*60
Icon-60@2x.png & & & & & & & &120*120
Icon-76.png & & & & & & & & & &76*76
Icon-76@2x.png & & & & & & & &152*152
&LaunchImage
For iPhone 6
750 x 1334 (@2x) for portrait
1334 x 750 (@2x) for landscape
For iPhone 6 Plus:
1242 x 2208 (@3x) for portrait
2208 x 1242 (@3x) for landscape
---------------------------------------------------------------------
4.0 inch screen:
Default-568h@2x.png (old 640x1136 ~ for iPhone 5)
4.0 inch screen:&
LaunchImage-700-568h@2x.png (new 640x1136 ~ for iPhone 5)
4.7 inch screen:&
LaunchImage-800-667h@2x.png (750x1334 ~ for iPhone 6)
5.5 inch screen:&
LaunchImage-800-Portrait-736h@3x.png ( ~ for iPhone 6 Plus Portrait)
5.5 inch screen:&
LaunchImage-800-Landscape-736h@3x.png ( ~ for iPhone 6 Plus Landscape)
Retina iPad:
Default-Portrait@2x~ipad.png ( ~ for Retina &iPad Portrait)
Retina iPad:
Default-Landscape@2x~ipad.png ( ~ for Retina &iPad Landscape)
iPad Mini/iPad:
Default-Portrait~ipad.png (768x1024 ~ for &iPad Portrait)
iPad Mini/iPad:
Default-Landscape~ipad.png ( ~ for &iPad Landscape)
适配iphone6/6+启动界面
如果旧的工程直接跑到这两个模拟器中时,默认是&兼容模式&,即系统会简单的把内容等比例放大,显示效果有些模糊但尚可接受。此时App内部获取到的设备分辨率和iPhone5是一样的:320*568 point。
启用高分辨率模式有2个方法:
1.添加大屏的LaunchImage:
在Images.xcassets里,删除旧的LaunchImage组,然后新建LaunchImage组,添加对应高分辨率的图片。(参考:)
2.添加Launch Screen File
Launch Screen是Xcode6和iOS8新加的功能,它用一个xib文件来作为启动画面。App在旧版iOS(低于ios8)启动时,该属性会被自动忽略,不会造成异常。
首先,点击New File -&iOS User Interface -&Launch Screen,然后在工程设置项里启用它:
LaunchFile
&不过这个xib不能关联任何的代码(不能自定义View的Class,不能IBOutlet,不能加Object),可以理解成这个xib就是一张截图,这个方案的好处在于可以使用到Size Classes来针对不同屏幕布局这个xib。
上面两处设置,只要启用任意一个即可让App进入高分辨率模式;但如果两处都没有设置,则App会回退到兼容模式。
两处都设定的话在ios8会走Launch Screen File,在低于ios8 走LaunchImage
PS:iPhone4、iPhone5、iPhone6这几个设备的ppi都是相同的,默认图片优先是@2x。iPhone6 Plus的像素密度更高,默认图片优先是@3x。 另外,iPhone6 Plus有一点和其他设备不同:在App内部获得的屏幕分辨率是,但设备实际分辨率是,这时系统会把整体的显示内容做一个缩放,downscale到1/1.15。
&UIPageControl的autoresizingMask
在设置UIPageControl实例的宽度时,显示的好像总是设置的四倍左右,但是把其他组建(UILable等)设置在同一父容器中显示的是正常的。头文件看到UIPageControl的autoresizingMask默认值是UIViewAutoresizingNone,但是感觉没起作用,于是这是下
Java代码&&
_mainPageControl.autoresizingMask&=&UIViewAutoresizingN&&
&UIPageControl显示正确了。(apple的bug?)
UIActivityViewController crashing on iPads by sdk8
其老早在&/library/ios/documentation/UIKit/Reference/UIActivityViewController_Class/ 中就说了:On iPad, you must present the view controller in a popover. On iPhone and iPod touch, you must present it modally。
在sdk8之前你ipad还是用了presentViewController,那在dismissViewControllerAnimated的时候屏幕会旋转下,可能你还能接受,但是在sdk8便会直接crash,报错:
Java代码&&
2014-10-15&14:03:25.927&BT2014[5133:488272]&***&Terminating&app&due&to&uncaught&exception&'NSGenericException',&reason:&'UIPopoverPresentationController&(&_UIAlertControllerActionSheetRegularPresentationController:&0x&)&should&have&a&non-nil&sourceView&or&barButtonItem&set&before&the&presentation&occurs.'&&
***&First&throw&call&stack:&&
(0x187d9e084&0x&0x18cc56bf0&0x18c81e3f8&0x18c81cf30&0x18c5a2efc&0x18c5149c0&0x187d56388&0x187d53314&0x187d536f4&0x187c81664&0x190d7f5a4&0x18c5864f8&0xc&0x198cfea08)&&
libc++abi.dylib:&terminating&with&uncaught&exception&of&type&NSException&&
&所以用sdk8编译时ipad用pop,并且用新类:UIPopoverPresentationController
UIActivityViewController
Java代码&&
Accessing&the&Completion&Handler&&
completionHandler&&
&(iOS&8.0)&&
The&completion&handler&to&execute&after&the&activity&view&controller&is&dismissed.&&
Declaration&&
OBJECTIVE-C&&
@property(nonatomic,&copy)&UIActivityViewControllerCompletionHandler&completionHandler&&
Discussion&&
When&the&user-selected&service&finishes&operating&on&the&data,&or&when&the&user&dismisses&the&view&controller,&the&view&controller&executes&this&completion&handler&to&let&your&app&know&the&final&result&of&the&operation.&&
Import&Statement&&
Availability&&
Available&in&iOS&6.0&and&later.&&
Deprecated&in&iOS&8.0.&&
&LaunchServices: invalidationHandler called& with UIActivityViewController iOS8
In iOS8 when I present or dismiss a UIActivityViewController, my app logs: &LaunchServices: invalidationHandler called&。
参考:/library/ios/documentation/UIKit/Reference/UIPopoverPresentationController_class/index.html
/message/9415
/questions//sharing-via-uiactivityviewcontroller-to-twitter-facebook-etc-causing-crash
可能是苹果的issue
ios sdk8/ios8 remoteNotification&
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
在苹果UIApplication文件中说明:
@interface UIApplication (UIRemoteNotifications)
- (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types NS_DEPRECATED_IOS(3_0, 8_0,&&Please use registerForRemoteNotifications and registerUserNotificationSettings: instead&);
// Returns the enabled types, also taking into account any doesn't relate to connectivity.
- (UIRemoteNotificationType)enabledRemoteNotificationTypes NS_DEPRECATED_IOS(3_0, 8_0,&&Please use -[UIApplication isRegisteredForRemoteNotifications], or -[UIApplication currentUserNotificationSettings] to retrieve user-enabled remote notification
and user notification settings&);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
所以在ios8中应该用的新的注册通知的代码:
&if&([[[UIDevice&currentDevice]&systemVersion]&floatValue]&&=&8.0)&&
&&&&&[[UIApplication&sharedApplication]&registerUserNotificationSettings:[UIUserNotificationSettings&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&settingsForTypes:(UIUserNotificationTypeSound&|&UIUserNotificationTypeAlert&|&UIUserNotificationTypeBadge)&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&categories:nil]];&&
&&&&&[[UIApplication&sharedApplication]&registerForRemoteNotifications];&&
&&&&&[[UIApplication&sharedApplication]&registerForRemoteNotificationTypes:&&
&&&&&&(UIUserNotificationTypeBadge&|&UIUserNotificationTypeSound&|&UIUserNotificationTypeAlert)];&&
&原本在IOS7当中 判断push是否打开的方法是:
Java代码&&
UIRemoteNotificationType&types&=&[[UIApplication&sharedApplication]&enabledRemoteNotificationTypes];&&
return&(types&&&UIRemoteNotificationTypeAlert);&&
如果将这段代码使用在 IOS8当中,虽然不会出现crash的现象,但永远返回空。 在IOS8中,我们使用如下的新代码来取代以上的代码:
Java代码&&
+(BOOL)enabledRemoteNotification{&&
&&&&UIRemoteNotificationType&&&
&&&&if&([[[UIDevice&currentDevice]&systemVersion]&floatValue]&&=&8.0)&&
&&&&&&&&types&=&[[UIApplication&sharedApplication]&currentUserNotificationSettings].&&
&&&&else&&
&&&&&&&&types&=&[[UIApplication&sharedApplication]&enabledRemoteNotificationTypes];&&
&&&&return&(types&&&UIRemoteNotificationTypeAlert);&&
ios 8 - buttons in horizontal scroll view intercepting pan event - scroll does not work
&含有uibutton的ScrollView在iOS8中无法滚动的解决办法:
Java代码&&
theScrollView.panGestureRecognizer.delaysTouchesBegan&=&theScrollView.delaysContentTouches&&
&转载:/blog/2123545
本文已收录于以下专栏:
相关文章推荐
2、参考资料
APP首次启动引导界面和启动界面设置——iOS开发。及NSUserDefaults的使用
在Unity中,是可以直接设置Launch界面的,不过分了两种(主要是IOS的,android的没试过,不过道理是一样的)
首先说说简单的,就是直接给全屏图片。如果想要通用Iphone和Ipad,则需...
一:iOS界面跳转Unity界面:(1)打开Unity所发布出来的XCode工程;(2)找到如下文件:
(3)修改如下所示:
详细说明:
找到(void)applicationDidBecome...
最近项目做的差不多了,折腾启动画面之类的东西,发现设置启动画面有点问题,折腾了一个晚上,最后发现是个小问题,在此记录下来,已经在ipad1(ios3.2)和new pad(ios6)上做了测试。
关于iOS 设备的屏幕:
1.所谓Retain屏幕,就是高清视网膜屏幕,分辨率宽高是标准屏幕分辨率的2倍。
2.设备的一些相关信息如下:
3.分辨率的意思就是把屏幕进行横向、纵向...
1.iPhone尺寸规格
/library/ios/documentation/UserExperience/Conceptual/MobileHIG...
原始出处未知,原作者未知,抱歉。
我只是从这里复制而来:http://blog.csdn.net/wadelin511/article/details/8773456
最近在对一个在Xcode4版本环境下建立的项目进行升级,在修改启动图片等时候比较头疼,问题在:旧的版本启动时显示黑屏,没有想到这是张图片,新设置启动图从xib中加载的时候,会将整改app界面的显示风格...
他的最新文章
讲师:董岩
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)}

我要回帖

更多关于 launchimage设置 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信