iphone-4

iOS 7 navbar colours not showing properly on iPhone 4

[亡魂溺海] 提交于 2019-12-23 13:21:00
问题 My navigation bar colours appear normally in iOS 7 Deploying iOS 6.0, but if the system version is iOS 7.0 or later, some of the navigation bar colouring doesn't display properly on iPhone 4. Works fine in iPhone 5. Here's how I am doing it: if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) { self.edgesForExtendedLayout = UIRectEdgeNone; [self.navigationController.navigationBar setBarTintColor:[UIColor blueColor]]; [self.navigationController.navigationBar setTranslucent:YES]; } #define

How to make an iphone and iphone4-retina compatible app (done in cocos2d) easily adapted to ipad?

六眼飞鱼酱① 提交于 2019-12-22 11:28:08
问题 My question is simple: 1. I made an iphone app all done in cocos2d. 2. I adapted it to iphone4-retina, with all PNG files have their -hd copy. Run in iPhone, the app displayed correctly (320x480). Run in iPhone4-retina, the app also displayed correctly (640x960). But run in iPad, if the app is set to iPhone only, it run correctly, but only as iPhone resolution (320x480). If the app is set to iPhone/iPad, of cause it will display wrong. I'm sure there should be an option that force a retina

Reading the iPhone's Ambient Light sensor

此生再无相见时 提交于 2019-12-17 23:20:27
问题 I notice on my iPhone, after a few seconds of being in direct sun light, the screen will adjust to become brighter, dimmer etc. I was wondering if there was a way to interact with this sensor? I have an application which is used outside. When you go into direct light, it becomes very difficult to see the screen for a few momments, before it adjusts. And even then, it's not always as bright as I'd like it to be. I would like to implement a high contrast skin for outdoor viewing, and a low

How could I create a shortcut on desktop in iOS through an app

血红的双手。 提交于 2019-12-17 17:59:17
问题 What do I mean is that I want to use the app to create a shortcut with icon on the desktop which will allow user to speed access some functions of this app. How could I do that, any suggestions? Or anyone have experience with this. An example: FaceDial 回答1: I spent a good while trying to implement this functionality into an app recently and wanted to put out some of the resources I found on the subject to save someone else a major headache. This is becoming an increasingly popular feature and

Detect retina screen/iPhone 4 in iPhone SDK

こ雲淡風輕ζ 提交于 2019-12-17 10:37:11
问题 In my application I am downloading some images from the web (from my server to be precise), in order to save some bandwith and especially memory on 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. How could I do that? I have been thinking about using the code snippet below which would

SKLabelNode creates black line and not showing text on iPhone4

筅森魡賤 提交于 2019-12-13 20:23:33
问题 I am loading different texts into a SKLabeNode it works fine on iPhone5, simulator, etc... but on iPhone4 I sometimes just get a black line, instead of the text. It is weird that always the same texts are generating the failure, but I cannot figure out what is happening. The code is: ButtonText=@""; ButtonLabel=[SKLabelNode labelNodeWithFontNamed:@"Marker Felt"]; ButtonLabel.fontSize=46; ButtonLabel.text=ButtonText; ButtonLabel.position=CGPointMake(0, 0); ButtonLabel.verticalAlignmentMode

iPhone 4 only app?

落爺英雄遲暮 提交于 2019-12-12 01:35:36
问题 Is it possible to restrict an app to only run on an iPhone 4? I know you can have an iPad only app. And in iTunes Connect you used to be able to indicate an iPhone only app. But now in iTunes Connect it says that to restrict an app to certain devices one can use the Info.plist. Someone suggested that in the Info.plist if a FrontFacingCamera is required that would restrict it to iPhone 4. Is this the way to restrict an app to run on only on an iPhone 4? 回答1: As far as I know you can't do an

UIToolbar not displaying on iPhone 4 and iPhone 4s

南笙酒味 提交于 2019-12-11 19:53:45
问题 I have a UIToolbar on the bottom of my app. On any device iPhone 5 and up it shows up correctly. On iPhone 4s and down it does not show on the screen at all. I have tried to add constraints but it is not helping. I am at a lose as to why this is happening. My app worked fine up until today. Any suggestions would be much appreciated. 来源: https://stackoverflow.com/questions/26004349/uitoolbar-not-displaying-on-iphone-4-and-iphone-4s

Disabling old devices support for developed app in xcode

蹲街弑〆低调 提交于 2019-12-11 12:58:12
问题 got an IOS app and I wantto support only new devices. eg. I wantto remove iphone4 support because of people may buy accidently that my app doesnt support that device. somehow there is no option for this in xcode.In xcode there is only universal/iphone/ipad options. but looking something an option to choose (remove iphone4) in conclusion: need to disable old devices to be purchased. in xcode, itunesconnect and appstore. and dont wanto add a top description (this app does not support iphone4.if

how to fix Viewport issue when going from landscape to portrait

青春壹個敷衍的年華 提交于 2019-12-10 17:32:45
问题 I've been doing some research about viewport issues in iPod and iPhone 4's Safari, but i can't find any answer on this matter. There are several threads about issues going from portrait to landscape, but not from landscape to portrait. The issue is the following: I used to have the normal zooming issue when going from portrait to landscape so i added the tag: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> So that fixed that issue. NOW, when I go back to