retina-display

iPad3 high resolution retina display issue

核能气质少年 提交于 2019-12-21 20:00:18
问题 I am developing an app for iPad3(Retina Display) using Xcode 4.2 [iOS SDK 5.0]. I am using following code snippet for detecting retina (high-resolution) display. if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { NSLog(@"scale = %f",[[UIScreen mainScreen] scale]); if ([[UIScreen mainScreen] scale] > 1.0) { NSLog(@"Retina Display iPad3"); } else { NSLog(@"Non Retina Display iPad 1/2"); } } When I install app on iPad3 device it is showing output: scale = 1.00000; Non Retina

forgot to put regular image but it has Retina @2x image

帅比萌擦擦* 提交于 2019-12-21 19:27:37
问题 I have submitted my app which support both regular and retina display edition. I forgot to put one of regular image file (a.png) but it has (a@2x.png) Retina image. Is it going to be regular iPhone able to show (a@2x.png) image or not? I have no clue since I don't have 3GS or iPod Touch, but on iPhone regular simulator came out to be show that image. Any experience? Thank You. 回答1: When iOS loads an image it will check the file name for the correct image ie. on a retina display device, it

Restrict the iphone app to install on only devices with Retina Display (iphone 4 / 4S ) [closed]

大城市里の小女人 提交于 2019-12-21 17:27:14
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am developing one iphone app. But I want to restrict my app to install only on device swith Retina Display. So my decision is to add

iPhone - adapt images to retina display

最后都变了- 提交于 2019-12-21 13:09:31
问题 I have a question about updating my app's graphics for the retina display of the iPhone 4. I am keeping each view's resolution to 480 x 320 Points. So I was wondering: suppose I have a 100 x 50 UIImageView. It's better for my actual image I am going to load to be 200 x 100 pixels @ 163 ppi or 100 x 50 pixels @ 326 ppi? Is it the same thing in terms of 'lightness'? which is the preferred way? Thanks, you're awesome Lorenzo 回答1: 1) Define your UIImageView to be 100 x 50 pixels as you describe

Understanding Retina device CSS Media queries

心已入冬 提交于 2019-12-21 05:35:20
问题 I am working on a WordPress theme and am trying to incorporate retina enabled CSS queries into my CSS file. I would just like to clarify that I have the media queries set up correctly before I change out all my background images. I have doubled the size of all my background images and perfixed them with the "@2x" naming convention. e.g icon-user@2x.png . I have added a jQuery function into my code to swap out the images with the CSS class of hires . In my CSS document I have a normal CSS

How does JSTileMap handle retina and ipad/iphone tile maps?

爷,独闯天下 提交于 2019-12-21 05:22:40
问题 I have created a basic tilemap using Tiled. I am using JSTileMap with SpriteKit to get the map in the scene. As I understood, JSTileMap (rather SKTexture) handles the retina and different devices automatically. I have not been able to produce good results so far, here is my setup: I have one .tmx file created at a base resolution using map.png as it's tile set. The .tmx is present in the project but I purposely did not add map.png (I do not want to support non-retina iPhones). In the project

Using Retina images in a local UIWebView

佐手、 提交于 2019-12-21 04:10:32
问题 For some reason, I cannot get a UIWebView to "play nice" with my new Retina images. The issue, step-by-step: I am loading a series of HTML help files out of the bundle. My code loads different HTML files if it's an iPhone 4 ( LWERetinaUtils below is a util class I have written). I have read in this question that it is not possible for the UIWebView to auto-detect the @2x indicator - and experienced that personally, hence this approach. if ([LWERetinaUtils isRetinaDisplay]) htmls = [NSArray

How do NSBundle pathForResource:ofType: and UIImage imageWithContentsOfFile: handle scale and device modifiers?

折月煮酒 提交于 2019-12-21 03:28:22
问题 In my iOS resource folder, I have the images: foo~iphone.png foo@2x~iphone.png foo~ipad.png foo@2x~ipad.png I load them with: NSString *fileName = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"png"]; UIImage *image = [UIImage imageWithContentsOfFile:fileName]; Experimentally: On the iPhone, filename is /path/to/bundle/foo~iphone.png , and on the retina iPhone, it loads the @2x version. On the iPad, filename is /path/to/bundle/foo~ipad.png , and on the retina iPad, it loads the @2x

How do I make video resources retina display compliant?

笑着哭i 提交于 2019-12-21 02:41:25
问题 I have an app that loads while a 2 second movie plays. Currently the app is out on the store and has all static content retina display compliant except this video. I have a 960x640 mp4 h.264 encoded video for the retina display and it works well in both iPhone (yes, high res, not 480x320) and iPhone4 simulators. but it just doesn't seem to play on my iPod Touch 3rd Gen running iOS4. I haven't been able to test on the physical retina display yet. It never occurred to me until now that maybe

Configure the backend of Ipython to use retina display mode with code

旧城冷巷雨未停 提交于 2019-12-21 02:14:08
问题 I am using code to configure Jupyter notebooks because I have a repo with plenty of notebooks and want to keep style consistency across all without having to write lengthy setting at the start of each. This way, what I do is having a method to configure the CSS, one to set up Matplotlib and one to configure Ipython. The reasons I configure my notebooks this way rather than relying on a configuration file as per docs are two: I am sharing this repo of notebooks publicly and I want all my