ipod-touch

iPod touch iOS6 - elements with large background images show up blank

孤街浪徒 提交于 2019-12-06 04:52:55
I've reproduced this on two separate iPod touch devices running iOS 6. iPhone does not seem to be affected, neither is iPad. I'm using a sprite file for images in my web application. I am now trying to provide retina support, so I have created a separate retina sprite file which is twice the dimensions of the low quality one. It seems like neither Chrome nor Safari like to display this. I'm doing the following: .img { background: url(xx-retina.png) no-resize top left; height: xx; width: xx; display: block } And in the body: <div class='img'/> The type of tag doesn't matter. The background

Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone?

血红的双手。 提交于 2019-12-05 21:43:23
We have an offline Safari application with UI designed for vertical use (pixel perfect). We would like the UI to stay vertical no matter what how the user rotates the ipod / iphone. Is it possible with offline Safari application? This question is exactly the same as Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone? . Yet - the referenced question has no definite answer and has been prematurely accepted. I'm not aware of any way to prevent the rotation if it needs to run in Safari rather than a native app with an embedded UIWebView. While you can't prevent the

Proper method to detect device model (iPhone/iPod Touch)?

南笙酒味 提交于 2019-12-04 18:34:32
Is this the proper way to detect which device a user is running? NSString *currentModel = [[UIDevice currentDevice] model]; if ([currentModel isEqualToString:@"iPhone"]) { // The user is running on iPhone so allow Call, Camera, etc. } else { // The user is running on a different device (iPod / iPad / iPhone Simulator) disallow Call. } It is not a general solution but Apple in many cases provides API calls to check wether specific feature is supported or not. Examples could be: +isSourceTypeAvailable: and +availableMediaTypesForSourceType: in UIImagePickerController allowing you to check if

My App shows only a black screen on iPod

半城伤御伤魂 提交于 2019-12-04 03:22:30
问题 My app is in productions an works correctly in all devices except the iPod touch, which only shows a black screen when start the app. Does any body knows which could be the problem? The iPod touch is running with the 4.2.1 iOS version. Thnks 回答1: As @ValentiGoClimb mentioned in the comment, Xcode has bad defaults when generating the Info.plist file; it only sets the Storyboard keys for iPads and iPhones, not iPod Touches. <key>UIMainStoryboardFile~ipad</key> <string>iPadStoryboardFileName<

How to detect if the phone app is available for various devices using iphone os

此生再无相见时 提交于 2019-12-03 15:04:48
问题 I'd like to show or hide a button that lets a user make a phone call based on whether or not the user can actually make a call (iPhone or iPod touch). Is it possible to somehow detect if the phone app is available to the user in cocoa-touch? Or am i constrained to detecting the device type to make that distinction? I would rather check for functionality than static clients in case something changes down the line for whatever reason (not that iPod touch users could ever make non-voip phone

iPhone detecting processor model / NEON support

微笑、不失礼 提交于 2019-12-03 07:34:25
问题 I'm looking for a way to differentiate at runtime between devices equipped with the new ARM processor (such as iPhone 3GS and some iPods 3G) and devices equipped with the old ARM processors. I know I can use uname() to determine the device model, but as only some of the iPod touches 3G received a boost in their ARM processor, this isn't enough. Therefore, I'm looking for one of these: A way of detecting processor model - I suppose there's none. A way of determining whether ARM neon

iPhone detecting processor model / NEON support

天大地大妈咪最大 提交于 2019-12-02 22:26:39
I'm looking for a way to differentiate at runtime between devices equipped with the new ARM processor (such as iPhone 3GS and some iPods 3G) and devices equipped with the old ARM processors. I know I can use uname() to determine the device model, but as only some of the iPod touches 3G received a boost in their ARM processor, this isn't enough. Therefore, I'm looking for one of these: A way of detecting processor model - I suppose there's none. A way of determining whether ARM neon instructions are supported - from this I could derive an answer. A way of determining the devices total storage

Airplane mode on iPod Touch — revisited

做~自己de王妃 提交于 2019-12-02 11:16:29
问题 The situation is this: We have an app that records sound. If the app is running on a second generation iPod Touch and airplane mode is OFF then there are periodic noises that end up in the recording due to the WIFI activity of the iPod. So I want to detect that we're running on a second generation iPod Touch (which I know how to do), and, if so, tell the user to turn on airplane mode, if it's not already on. Note that it's NOT SUFFICIENT to simply know that WIFI is unreachable as the iPod

Making images appear… How?

对着背影说爱祢 提交于 2019-12-02 03:59:22
Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate UIView is a subclass of UIResponder , which has the following methods that might help: -touchesBegan:withEvent: , -touchesEnded:withEvent: , -touchesCancelled:withEvent: and -touchesMoved:withEvent: . The first parameter of each of those is an NSSet of UITouch objects. UITouch has a -locationInView: instance method which should yield the position of the tap in your view. joemama8933 You could create an initial star and just move it every

How to get iPod Touch simulator in Xcode 6.1

做~自己de王妃 提交于 2019-12-02 00:17:28
问题 My game app works on all iPhone's and all iPad's. I also want it to work on all iPod Touches. There is no iPod Touch simulator in Xcode 6.1. So how do I work on it? 回答1: You have to keep in mind, that the iPhone simulator is just a simulator. It is not the real device. The reason why there is no iPod Touch simulator is, because there would be no difference between the iPhone 5 and the current iPod Touch, since both have the same screen size and both have a 32 Bit architecture. They may have