iphone-5

iOS 6 - Distinguishing between iPhone 5 and other devices?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:29:23
问题 With the announcement of the iPhone 5 and new iPods today, I'm starting work on optimizing my app to take advantage of the new, extra screen space. I've already got to the point where my app isn't "letterboxed" anymore. I know it's early, but does anyone know how I could distinguish between the new, taller devices and the old ones? Ideally, it would be something like this: if (device is iPhone 5 or taller iPod touch) { do stuff that is ideal for the taller screen } else { do what I've been

iOS 6 MPMoviePlayerViewController and presentMoviePlayerViewControllerAnimated Rotation

丶灬走出姿态 提交于 2019-11-29 15:26:49
问题 In previous iOS versions, our video would rotate automatically but in iOS 6 this is no longer the case. I know that the presentMoviePlayerViewControllerAnimated was designed to do that before but how can I tell the MPMoviePlayerViewController to rotate automatically? MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [self presentMoviePlayerViewControllerAnimated:moviePlayer]; 回答1: In appdelegate.m : - (NSUInteger) application:

iPhone 5 TabBar not functioning in proper position

为君一笑 提交于 2019-11-29 05:45:07
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 *tabBar = self.tabBarController.tabBar; if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { CGSize

How to consolidating the translucency of the navigation bar between iPhone 5S and 5?

百般思念 提交于 2019-11-29 02:28:30
I have difficulty consolidating the UINavigationBar's barTintColor between iPhone 5 and 5S. Both of my phones are on iOS 7. In the following screenshot, the top is 5S and the bottom is 5. iPhone 5S shows an extremely translucent effect while iPhone 5 shows a much more subtle effect. Only very dark objects are visible behind the navigation bar for iPhone 5. [[UINavigationBar appearanceWhenContainedIn:[UINavigationController class], nil] setBarTintColor:[UIColor colorWithRed:46.0 / 255.0 green:160.0 / 255.0 blue:152.0 / 255.0 alpha:0.8 ] ]; I would prefer that both phones look like the iPhone 5.

Is there an equivalent apple-touch-startup-image for the IPAD?

谁都会走 提交于 2019-11-29 00:52:56
问题 For web apps you can set the startup screen with apple-touch-startup-image What about for iPads? 回答1: I had the same issue as well... You need to you use a specific size of 1004*768. i explained it in this blog: http://www.amirnaor.com/?p=71 回答2: This will add a Splash Screen to your Web App. Below are the sizes you’ll need for both iPad and iPhone/iPod Touch, and iPhone 5. These include the status bar area as well. <!-- iPhone --> <link href="http://www.example.com/mobile/images/apple-touch

how to set apple-touch-startup-image for iphone5?

断了今生、忘了曾经 提交于 2019-11-29 00:10:01
问题 I tried <link href="Images/Default-568h@2x.png" sizes="640x1136" media="(device-width: 640px) and (device-height: 1136px)" rel="apple-touch-startup-image"> But it didn't work. And apple's interface guildline hasn't been updated for iphone5. Anybody knows?Thanks! 回答1: 1.Don't use "width=device-width" for viewport, use codes below: <meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"> <meta content="yes" name="apple-mobile-web-app-capable"> 2.Prepare an image

Developing fullscreen 4inch app in xcode [duplicate]

天大地大妈咪最大 提交于 2019-11-28 21:40:20
Possible Duplicate: How do I support the taller iPhone 5 screen size? How to make my app 4inch-ready? My app in iOS6GM simulator looks not 4inch-sized. Is there any option in xcode to use all 4 inches? Hannes Sverrisson Some users have reported that it was fixed after adding the startup image Default-568h@2x.png (see below). For updating to iPhone5 I did the following: Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientationsForWindow: and shouldAutorotate

Extend app for iPhone 5 - best practice

萝らか妹 提交于 2019-11-28 20:36:11
问题 Now that Apple is about to start shipping iPhone 5's, I'm looking into extending my applications so they appear full screen on the iPhone 5 . I ran my apps on the simulator, and even the ones with a UITableView extending to the bottom of the screen, the black bars appear at the top and bottom of the screen. Here's my question: What is the best practice for extending apps for the iPhone 5 ? Should I make a separate nib now for the 3.5 and 4 inch screen, or extend everything in code? I'm trying

Separate StoryBoards for iPhone 5 and iPhone 4S [duplicate]

我的梦境 提交于 2019-11-28 18:06:31
问题 Possible Duplicate: How to develop or migrate apps for iPhone 5 screen resolution? How can I load separate storyboards for iPhone 5 and iPhone 4S/4/3G?? I wana do this because screen size is different for iPhone 5. 回答1: In your app delegate, you will need to add/replace the following code in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions CGRect screenBounds = [[UIScreen mainScreen] bounds]; if (screenBounds.size.height == 568) {

Unable to handle orientation in iOS 6?

隐身守侯 提交于 2019-11-28 17:05:14
I am using - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation delegate to change the frame of my view based on the orientation type i.e., if(UIInterfaceOrientationIsLandscape(interfaceOrientation)) { self.view.frame=CGRectMake(0,0,500,300); } else { self.view.frame=CGRectMake(0,0,300,400); } How to handle the same situation in iOS 6 as -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation has been deprecated in iOS6. I am using the following delegate to set all the orientations. -(NSUInteger