iphone-5

App crash with 'Could not instantiate class named NSLayoutConstraint'

落爺英雄遲暮 提交于 2019-12-24 18:33:41
问题 In a .xib file how do I keep the Autolayout on for iOS 6 but off for iOS below 6. If I turn it off my .xib doesn't get the proper layout . If I turn it on my Iphone with 4.3 crashes. Any help would be appreciat it Thank you 回答1: I don't believe this is possible as autolayout changes how your application is compiled. The options I've considered for a workaround to this are: Detect the height of the display and programmatically change some of the elements (ick, but I've done this when it was

Conversion of existing applications to be compatible with iphone5? [duplicate]

好久不见. 提交于 2019-12-22 09:16:53
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to develop or migrate apps for iPhone 5 screen resolution? I have some applications in IPhone .Now i want them to be compatible to IPhone5 .Somewhere i read that i need to change the splash screen to 4 inch.Shall i need to change this in all my xibs,or splash only.Currently i am using xcode4.2.i am getting IPhone5 simulator,is that enough or i need to install any later version to get the correct simulator

Reachability responding with wrong status code in iOS 7 iphone 5

这一生的挚爱 提交于 2019-12-21 17:40:23
问题 I am facing weird problem on iPhone 5 with iOS 7, i have tested same code with other devices like iPad1, 2, 3 and iPhone 4, 4s etc. with different iOS combination including iOS 7. Problem : When i turn on airplane mode i do get reachability notification as expected with status NotReachable but immediately after that app receives notification with status code ReachableViaWWAN which is not expected. Code : +(BOOL)checkReachability { Reachability* internetReachable = [Reachability

CoreBluetooth[WARNING] Unknown error: 14 on iPhone 5

寵の児 提交于 2019-12-21 09:24:49
问题 I am able to connect to a peripheral device using BLE, but shortly after reading some characteristics, the framework returns: CoreBluetooth[WARNING] Unknown error: 14 and the peripheral is disconnected. Looking at the BT Core_V4.0 spec, I am not sure what the error means. Is the 14 a hex value? does it mean the following error according to the spec: (Part D Section 2 - Error Codes) 2.20 REMOTE DEVICE TERMINATED CONNECTION DUE TO LOW RESOURCES (0X14) The Remote Device Terminated Connection due

Default-568h@2x.png for iPhone5

和自甴很熟 提交于 2019-12-21 08:01:12
问题 I want to update my app so that can be deployed on iPhone5. Xcode(4.5) has a Default-568h@2x.png which is a black image(640X1136). In iPhone5's simulator, it still loads the old Default@2x.png. I wanted to know whether it will be same on the actual device ? Thanx !!! 回答1: Switch to the "iPhone (Retina 4-inch)" device from the Hardware menu in the simulator and you should see the iPhone 5 default image on launch. 回答2: Happens to me when I launch iPhone 4" simulator with iOS 5.1 . When changed

Does the app store show iPhone 5 users the smaller screenshots too, and vice versa?

我的梦境 提交于 2019-12-21 05:26:04
问题 I'm wondering whether I need to make repeating screenshots for both the regular iPhone size and the iPhone 5 size, or whether it shows both to both users. For example, an iPhone 5 user would see the non-iPhone 5 screenshots, as well as their own. 回答1: According to my understanding & experience: You must have regular iPhone screenshot (3.5") to submit an app. It always have been this way and that haven't changed. If you support iPhone 5 screen with your app (meaning you put 4" launch screen

Will removing support for armv7s architecture still work fine for the iPhone 5 screen?

橙三吉。 提交于 2019-12-21 05:22:00
问题 I am using Xcode 4.5 and using the base SDK, iOS6 and am porting my app for iPhone 5. Some of the libraries that I use for my app are still not built for armv7s architecture. Will removing support for armv7s architecture still work fine for the iPhone 5 screen? Or, will I see black letterboxes? It works fine on the simulator though. Would like to know if anyone got a chance to test this case. 回答1: Yes, it should work fine. The deciding factor for whether your code will letterbox is the

iPhone corebluetooth central Manager send data to peripheral

落爺英雄遲暮 提交于 2019-12-20 09:40:01
问题 I want to send data from iPhone to a bluetooth device which get discovered and connects. I am referring this tutorial to connect. I am not able to send data to external bluetooth device which is connected as we do with External Accessory framework. I am using iPhone5 as it has Bluetooth 4.0 回答1: In Core Bluetooth you need to use the characteristics for communication. There is no standard stream based API like in the External Accessory Framework and I don't know of any open source libraries

Suffix for Retina Images in iPhone 5

余生长醉 提交于 2019-12-19 03:12:10
问题 I have some image files for iPhone 5 size 640x1136, i have previously implemented retina images for iPhone 4 & 4S using @2x suffix, so what will be the suffix for images in iPhone 5, we can user the same as is @2x or it has to be changed. 回答1: See my answer here. Some useful macros to help you with dealing with images. 回答2: It’ll still use @2x images where they’re available. There’s a -568h suffix you can use for the launch image, as in Default-568h@2x.png , but that’s currently the only

Xcode Storyboard displaying the new iPhone 5 screen size?

白昼怎懂夜的黑 提交于 2019-12-18 12:46:46
问题 I have the latest version of Xcode. In one of my projects I noticed that the views for the iPhone were the new iPhone 5 screen sizes. I like it but is there a way to switch back to the smaller screen size? Not everyone has the iPhone 5. 回答1: Also, when your building your interface, you'll see a small icon that lets you quickly switch between 4" and 3.5" screens. It's the rectangular icon on the left. It toggles back and forth between phone sizes. 回答2: There's a size property in the attributes