ˇ@

Home 

2014/10/15 ¤U¤Č 10:13:24

iphone Programming Glossary: retina

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And.. height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have.. points pixels just show up black. Edit To enable your apps to work with iPhone 5 you need to add a retina version of the launcher image. It should be named Default 568h@2x.png . And it has to be retina quality..

How to take a screenshot programmatically

http://stackoverflow.com/questions/2200736/how-to-take-a-screenshot-programmatically

UIImagePNGRepresentation image data writeToFile @ foo.png atomically YES UPDATE April 2011 for retina display change the first line into this if UIScreen mainScreen respondsToSelector @selector scale UIGraphicsBeginImageContextWithOptions..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display retina The best way I've found to do it now is if UIScreen mainScreen respondsToSelector @selector scale YES.. @selector scale YES UIScreen mainScreen scale 2.00 RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices..

Bold & Non-Bold Text In A Single UILabel?

http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel

30 2 10 180 30 _textLayer.contentsScale UIScreen mainScreen scale looks nice in retina displays too _textLayer.alignmentMode kCAAlignmentCenter layer addSublayer _textLayer Create the attributes..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody.. of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know a solution for my issue UIImage imageWithView UIView view UIGraphicsBeginImageContext.. UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

makes images bigger and loading them slightly more complex. With the built in support for iPad and retina images you should certainly use ImageNamed in your code. Now for posterity's sake The sister thread..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will..

What are the sizes used for the iOS application splash screen?

http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen

1024w x 748h Default LandscapeLeft.png 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you.. 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you have not specified a Default PortraitUpsideDown.png..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel size. UIGraphicsBeginImageContextWithOptions newSize NO 0.0..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Retina Display Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display.. RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices you need to check if the device is running iOS4 and if the UIScreen.. will return 1.0 in 1x mode and 2.0 in 2x mode even though we know that device does not contain a Retina display. Apple changed this behavior in iOS4.2 for the iPad it returns 1.0 in both 1x and 2x modes...

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

dates from iOS 1.0 Image requirements and handling handling have moved on a lot since then. Retina makes images bigger and loading them slightly more complex. With the built in support for iPad and retina..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

we deal with the iPhone 5 bigger screen size. As it has more pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad.. the iPhone 5 bigger screen size. As it has more pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally.. could go with the default letterboxed model where the extra points pixels just show up black. Edit To enable your apps to work with iPhone 5 you need to add a retina version of the launcher image. It should be named Default 568h@2x.png . And it has to be retina quality there's no backward compatibility here You could also select..

How to take a screenshot programmatically

http://stackoverflow.com/questions/2200736/how-to-take-a-screenshot-programmatically

UIGraphicsEndImageContext NSData data UIImagePNGRepresentation image data writeToFile @ foo.png atomically YES UPDATE April 2011 for retina display change the first line into this if UIScreen mainScreen respondsToSelector @selector scale UIGraphicsBeginImageContextWithOptions self.window.bounds.size..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Retina Display Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display retina The best way I've found to do it now is if UIScreen mainScreen respondsToSelector @selector scale YES UIScreen mainScreen scale 2.00 RETINA DISPLAY iphone ios4.. best way I've found to do it now is if UIScreen mainScreen respondsToSelector @selector scale YES UIScreen mainScreen scale 2.00 RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices you need to check if the device is running iOS4 and if..

Bold & Non-Bold Text In A Single UILabel?

http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel

CGRectMake layer.bounds.size.width 180 2 10 layer.bounds.size.height 30 2 10 180 30 _textLayer.contentsScale UIScreen mainScreen scale looks nice in retina displays too _textLayer.alignmentMode kCAAlignmentCenter layer addSublayer _textLayer Create the attributes for the attributed string CGFloat fontSize 13 UIFont..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know a solution for my issue UIImage imageWithView UIView.. to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know a solution for my issue UIImage imageWithView UIView view UIGraphicsBeginImageContext view.bounds.size view.layer renderInContext UIGraphicsGetCurrentContext.. renderInContext UIGraphicsGetCurrentContext UIImage img UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions as documented on..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

handling handling have moved on a lot since then. Retina makes images bigger and loading them slightly more complex. With the built in support for iPad and retina images you should certainly use ImageNamed in your code. Now for posterity's sake The sister thread on the Apple Dev Forums received some better traffic. Specifically..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will require you to check the screen size every time you have..

What are the sizes used for the iOS application splash screen?

http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen

PortraitUpsideDown.png 768w x 1004h Default Landscape.png 1024w x 748h Default LandscapeLeft.png 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you have not specified a Default PortraitUpsideDown.png file this.. Default Landscape.png 1024w x 748h Default LandscapeLeft.png 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you have not specified a Default PortraitUpsideDown.png file this file will take precedence. ”If you have..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

scaledToSize CGSize newSize UIGraphicsBeginImageContext newSize In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel size. UIGraphicsBeginImageContextWithOptions newSize NO 0.0 image drawInRect CGRectMake 0 0 newSize.width newSize.height..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Retina Display Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display retina The best way I've found to do it now is if UIScreen.. @selector scale YES UIScreen mainScreen scale 2.00 RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices you need to check if the device is running iOS4 and if the UIScreen mainScreen .scale property is equal to 2.0. You CANNOT assume.. also contains this property. On an iPad running iOS3.2 scale will return 1.0 in 1x mode and 2.0 in 2x mode even though we know that device does not contain a Retina display. Apple changed this behavior in iOS4.2 for the iPad it returns 1.0 in both 1x and 2x modes. You can test this yourself in the simulator. I test for the..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

Use it and stop worrying. Edit Nov 2012 Note that this question dates from iOS 1.0 Image requirements and handling handling have moved on a lot since then. Retina makes images bigger and loading them slightly more complex. With the built in support for iPad and retina images you should certainly use ImageNamed in your code...

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

size. As it has more pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design.. has more pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards.. where the extra points pixels just show up black. Edit To enable your apps to work with iPhone 5 you need to add a retina version of the launcher image. It should be named Default 568h@2x.png . And it has to be retina quality there's no backward..

iPhone 5 - what naming convention the new images have to follow?

http://stackoverflow.com/questions/12431445/iphone-5-what-naming-convention-the-new-images-have-to-follow

images used by an app Is there a naming convention that will automatically load the correct image iphone ios ipad retina display share improve this question The new default is Default 568h@2x.png. note hyphen There is no other corresponding..

How to make xib compatible with both iphone 5 and iphone 4 devices

http://stackoverflow.com/questions/13275144/how-to-make-xib-compatible-with-both-iphone-5-and-iphone-4-devices

with both iphone 5 and iphone 4 devices I am trying to layout my xib so that layout fits in both iphone 5 4 inches retina and 3.5 devices. Because I have to support IOS 5 I cannot use autolayout. I have to use springs and Struts. I tried everything.. builder. But either my view is going beyond the bottom of iphone 3.5 inch or not filling completely the iphone 4 inch retina. Can someone give a hint how to actually make an xib compatible to both the devices For more clarity I am adding screenshots..

How to take a screenshot programmatically

http://stackoverflow.com/questions/2200736/how-to-take-a-screenshot-programmatically

NSData data UIImagePNGRepresentation image data writeToFile @ foo.png atomically YES UPDATE April 2011 for retina display change the first line into this if UIScreen mainScreen respondsToSelector @selector scale UIGraphicsBeginImageContextWithOptions..

Detect retina screen/iPhone 4 in iPhone SDK

http://stackoverflow.com/questions/3272752/detect-retina-screen-iphone-4-in-iphone-sdk

retina screen iPhone 4 in iPhone SDK In my application I am downloading some images from the web from my server to be precise.. the phone I provide them in two resolutions 480x320 for the old iPhone series and in 960x640 for the iPhone 4 with the retina display. Now I need to be able to detect from within the app when it is running on a device that supports the retina screen... retina display. Now I need to be able to detect from within the app when it is running on a device that supports the retina screen. How could I do that I have been thinking about using the code snippet below which would return me a specific device..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Retina Display Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display retina The best way I've found to do it now is if UIScreen mainScreen respondsToSelector @selector scale YES UIScreen mainScreen.. mainScreen respondsToSelector @selector scale YES UIScreen mainScreen scale 2.00 RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices you need to check..

Bold & Non-Bold Text In A Single UILabel?

http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel

180 2 10 layer.bounds.size.height 30 2 10 180 30 _textLayer.contentsScale UIScreen mainScreen scale looks nice in retina displays too _textLayer.alignmentMode kCAAlignmentCenter layer addSublayer _textLayer Create the attributes for the attributed..

Saving UIView contents in iOS 4 with real size of the images inside (i.e. scale contentes up for save)

http://stackoverflow.com/questions/4213529/saving-uiview-contents-in-ios-4-with-real-size-of-the-images-inside-i-e-scale

contentes up for save I have an UIView with many UIImageViews as subviews. The app runs on iOS4 and I use images with retina display resolution i.e. the images load with scale 2 I want to save the contents of the UIView ... BUT ... have the real.. since it's already done ... p.s. if anyone has an answer including code would be nice iphone uiview ios4 calayer retina display share improve this question Here is the implementation for rendering any UIView to image working also for retina.. display share improve this question Here is the implementation for rendering any UIView to image working also for retina display . helper.h file @interface UIView Ext UIImage renderToImage @end and belonging implementation in helper.m file #import..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know a solution.. UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know a solution for my issue UIImage imageWithView UIView view UIGraphicsBeginImageContext view.bounds.size.. UIImage img UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

since then. Retina makes images bigger and loading them slightly more complex. With the built in support for iPad and retina images you should certainly use ImageNamed in your code. Now for posterity's sake The sister thread on the Apple Dev Forums..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

the pixels with the retina non retina problem won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will require you to check..

Screen size of iphone 5

http://stackoverflow.com/questions/13399075/screen-size-of-iphone-5

iphone 4 . iphone objective c ios share improve this question On the simulator make sure you have set to iPhone Retina 4 inch . You can do this by going simulator menu at the top go to Hardware Device iPhone Retina 4 inch that will change.. you have set to iPhone Retina 4 inch . You can do this by going simulator menu at the top go to Hardware Device iPhone Retina 4 inch that will change the phone simulator to the iPhone 5 version. If this is set then you may need to add a launch image..

What are the sizes used for the iOS application splash screen?

http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen

Default Landscape.png 1024w x 748h Default LandscapeLeft.png 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you have not specified.. LandscapeLeft.png 1024w x 748h Default LandscapeRight.png 1024w x 748h iPad Retina “Portrait.png 1536w x 2008h iPad Retina “Landscape.png 2048w x 1496h Default.png Not recommended ”If you have not specified a Default PortraitUpsideDown.png file..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

newSize In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel size. UIGraphicsBeginImageContextWithOptions newSize NO 0.0 image drawInRect..

Detect Retina Display

http://stackoverflow.com/questions/3504173/detect-retina-display

Retina Display Does iOS SDK provides an easy way to check if the currentDevice has an high resolution display retina The best.. scale 2.00 RETINA DISPLAY iphone ios4 retina display share improve this question In order to detect the Retina display reliably on all iOS devices you need to check if the device is running iOS4 and if the UIScreen mainScreen .scale.. running iOS3.2 scale will return 1.0 in 1x mode and 2.0 in 2x mode even though we know that device does not contain a Retina display. Apple changed this behavior in iOS4.2 for the iPad it returns 1.0 in both 1x and 2x modes. You can test this yourself..

CoreGraphics for retina display

http://stackoverflow.com/questions/4707465/coregraphics-for-retina-display

Best DV iphone core graphics retina display cg share improve this question CGImages don't take into account the Retina ness of your device so you have to do so yourself. To do that you need to multiply all of your coordinates and sizes that.. your coordinates and sizes that use in CoreGraphics routines by the input image's scale property which will be 2.0 on Retina devices to ensure you do all your manipulation at double resolution. Then you need to change the initialization of resultImage..

in iPhone App How to detect the screen resolution of the device

http://stackoverflow.com/questions/4779221/in-iphone-app-how-to-detect-the-screen-resolution-of-the-device

UIScreen mainScreen scale This will give you the scale of the screen. For all iPhones and iPodTouches that do NOT have Retina Displays will return a 1.0f while Retina Display devices will give a 2.0f. Now if you want to get the pixel width height.. you the scale of the screen. For all iPhones and iPodTouches that do NOT have Retina Displays will return a 1.0f while Retina Display devices will give a 2.0f. Now if you want to get the pixel width height of the iOS device screen you just need to.. The usefulness of this code is that it will work in later products by Apple such as if the iPad ever gets a Retina Display then using the scale will always get you the real pixel resolution. A good read on the difference between points..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

Note that this question dates from iOS 1.0 Image requirements and handling handling have moved on a lot since then. Retina makes images bigger and loading them slightly more complex. With the built in support for iPad and retina images you should..