iphone-5

Xcode 4.5 different iPhone backgroud on iPhone 4s and 5

心不动则不痛 提交于 2020-03-05 03:06:23
问题 I have made two different background images for my iPhone app: one in 640x960px (iPhone4s) and one in 640x1136px (iPhone5). But when I create the application layouts in the Xcode 4.5 Main Storyboard, how do I define and create it for both iPhone4s and iPhone5? So that the background automatically updates when i choose iPhone5 screen? 回答1: Just import your background image with the correct suffix For example : myImage.png for non-retina display myImage@2x.png for retina display myImage-568h@2x

Which APIs to enable for video stabilization in iOS6?

橙三吉。 提交于 2020-01-17 08:29:10
问题 According to this rather old, but still current page on Apple's Developer Site (the public portion), there are supposed to be APIs within iOS 6 that allow for access to "real-time video stabilization". Sadly, I cannot find any API documents that seem to support this. Could someone please point me in the right direction? 回答1: Well, I finally found it. Link to Apple API Document Discussion The default value of this property is NO. If the supportsVideoStabilization property contains the value

iPhone-5 compatible issue

為{幸葍}努か 提交于 2020-01-15 11:49:07
问题 I had developed an ios app for ios 4.0.That was navigation based application.Now I want it also support for iPhone-5 I think I changed xib after checking device version,I am facing problem xib is changed but it's view Height is not changed.How it can possible if some else face this problem please share ideas with me.Thanks. 回答1: Set iOS 6 as the Base SDK and use the Auto Layout feature to make screens that can scale for all type of screens. You'll need Xcode 4.5 to do this. Get started with

in MKMapkit how to get the current location detail in textfield or tableview

人走茶凉 提交于 2020-01-05 06:37:20
问题 RootViewController *objYourViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil]; CATransition* transition = [CATransition animation]; transition.duration = 1.0; transition.type = kCATransitionPush; transition.subtype = kCATransitionPush; [self.navigationController.view.layer addAnimation:transition forKey:kCATransition]; [self.navigationController pushViewController:objYourViewController animated:YES]; This is used to point the current location. Now i

About supporting iPhone 5 when using nib files and backwards compatibility

送分小仙女□ 提交于 2020-01-03 06:33:12
问题 I've been looking for Apple's documentation and posts regarding this issue, but I didn't make it clear how should I deal with this, since most of information I found is about storyboards and autolayout feature. I'm using nib files instead of storyboards, and in addition I need to support iOS 5+, so I can't use autolayout. I'm using Xcode 4.6.3 and I've observed that, in IB, going to the view's Attributes inspector > Simulated Metrics, you can choose its size ("Retina 3.5 Full Screen", "Retina

The iPhone 5 has 3 mics. Can I change from which one I'm recording?

对着背影说爱祢 提交于 2020-01-01 12:33:31
问题 The iPhone 5 has 3 microphones, according to its product presentation: After looking through the website of iFixit and others I now know where the bottom microphone is and I've identified the one on the back, right next to the camera. There should be another one on the front, at the top, but I can't see it, so I assume it's behind the earpiece/receiver opening. (Is this correct?) I would like to record from two different microphones while the iPhone 5 is lying on it's back. (So the rear mic

Is iOS 4.3 with armv7 the lowest you can go if you want to support iPhone 5?

本小妞迷上赌 提交于 2019-12-30 08:53:11
问题 I read on the internet that iOS 4.3 with armv7 is the lowest you can go if you want to support iPhone 5. So, if I want my app to run on iPhone 5, then do I need to set the deployment target as iOS 4.3 and set the architecture as armv7? I couldn't find an official documentation for this. Could you correct this information if it's wrong? UPDATE: I've found the answer in the Xcode 4.5 GM seed Release Notes documentation of Apple: Changes in Xcode 4.5: - Support removed for armv6 Xcode 4.5 and

iOS Project Update Xcode 4.2 to Xcode 4.5

馋奶兔 提交于 2019-12-30 08:23:46
问题 In my Project I have done 90% development using XCode 4.2 (was only need to support 4.x,5.x), Now I need to Build for iOS 6 as well, so I switched to Xcode 4.5 & iOS 6. But I am facing lots of issues like framework error for "Sqlite3", "MobileCoreServices" I have read below Thread but no success. How to make Xcode 4.5 project work on previous version of Xcode? Xcode linker Directory not found for option Can anyone please tell me How can I compile "Sqlite3", "MobileCoreServices" frame work for

iPhone 5 TabBar not functioning in proper position

主宰稳场 提交于 2019-12-29 06:41:05
问题 I am updating our app and I have added the new default image but my tab bar was not working on the iPhone 5. I did some research and created an if statement checking for the size of the display and then placing the tab bar in the proper location. The problem is that when the if statement hits the iPhone 5 screen size and places the tab bar in the right place, the buttons do not work... If I change the vertical location to a lesser value the buttons then work. Here is the code: UITabBar

can't display 640x1136 image on iphone5

怎甘沉沦 提交于 2019-12-25 05:19:07
问题 I've added a Default-568h@2x.png launch image to my app. The app needs to display a second launch image after the "real" launch image. Because the UIImage imageNamed: method doesn't automatically load the taller image the way it automatically loads retina images, I've added some code to detect the screen size and display the correct image: -(void)pickRightImage { CGSize result = [[UIScreen mainScreen] bounds].size; UIImageView *imgv = [self loadingImage]; UIImage *img; if(result.height == 480