Questions tagged [iphone-5]

The iPhone 5 is the sixth version of the iPhone released by Apple, Inc. Use this tag for questions specific to this platform.

iphone-5
Filter by
Sorted by
Tagged with
504 votes
30 answers
150k views

How to develop or migrate apps for iPhone 5 screen resolution?

The new iPhone 5 display has a new aspect ratio and a new resolution (640 x 1136 pixels). What is required to develop new or transition already existing applications to the new screen size? What ...
Lukasz's user avatar
  • 19.9k
265 votes
8 answers
162k views

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

Possible Duplicate: How to develop or migrate apps for iPhone 5 screen resolution? I was just wondering with how should we deal with the iPhone 5 bigger screen size. As it has more pixels in ...
jturolla's user avatar
  • 6,626
132 votes
11 answers
267k views

iPhone 5 CSS media query

The iPhone 5 has a longer screen and it's not catching my website's mobile view. What are the new responsive design queries for the iPhone 5 and can I combine with existing iPhone queries? My current ...
Maverick's user avatar
  • 3,049
92 votes
5 answers
113k views

Set rootViewController of UINavigationController by method other than initWithRootViewController

How Do I set the rootViewController of UINavigationController by a method other than initWithRootViewController? I want use initWithNavigationBarClass:toolbarClass: to deliver a custom toolbar for my ...
drc's user avatar
  • 1,915
60 votes
5 answers
42k views

Black bars showing when running app on iOS 7 (4 inch retina display)

We have an iPod app built with base SDK as 5.1. App has a tabBarController with three tabs and each tab has a UIViewController to load a different view. The app works fine for iOS 6.1 and iOS 7 (3.5 ...
User0911's user avatar
  • 1,572
52 votes
6 answers
38k views

Creating a percentage based iOS layout

I'm trying to replicate a layout that I currently have in an Android application, but I don't know how to go about it in iOS especially because of the tallness of the iPhone 5. I know how to explain ...
EGHDK's user avatar
  • 18k
45 votes
5 answers
10k views

Black bars appear in app when targeting iOS7.1 or 7.0 in Xcode6

Steps to reproduce: Create a new project using Xcode6 (single view template, iPhone only, Objective-C) Navigate to project settings and change the deployment target from 8.0 to 7.1 Run the ...
Kris Gellci's user avatar
  • 9,639
29 votes
17 answers
27k views

XCode 4.5 (4G182) + iPhone 5 iOS6 - Choose a destination with a supported architecture in order to run on this device

So I have a brand new app I created last night for iOS6, using XCode 4.5. I can properly develop on my iPhone 4 with iOS6. Today I got my new iPhone 5 with iOS6 and, after updating the certificates ...
Eneko Alonso's user avatar
  • 19.3k
28 votes
3 answers
51k views

How to add iPhone 5 large screen support to iOS apps in Xcode? [duplicate]

Possible Duplicate: How to deal with iPhone 5 screen size? How can I add support for 4-inch iPhone 5 displays to an iOS app in Xcode? Is this even possible with the latest public Xcode release, ...
Anton's user avatar
  • 5,982
27 votes
2 answers
19k views

How to switch to different Storyboard for iPhone 5?

Just as an app utilizes different storyboards for iPad and iPhone, I would like my app to use a different storyboard for the iPhone 5. Since there is no option in the Info.plist to select default ...
user1486548's user avatar
  • 1,201
26 votes
1 answer
32k views

How can I set the iPhone 5 in simulator in the new XCode 4.5 GM?

I'm having some troubles with running/testing my App for the new iPhone. When running simulator with this newer version of XCode the iPhone 4" is not visible (anymore) under hardware->device. Did I ...
BarryK88's user avatar
  • 1,806
25 votes
4 answers
24k views

Xcode Storyboard displaying the new iPhone 5 screen size?

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 ...
flyers's user avatar
  • 514
25 votes
5 answers
7k views

iPhone 5 (4") bottom toolbar not responding

I'm trying to modify an app to work with the new iPhone 5, 4" screen. I've added the new launch image, "[email protected]". After that everything seemed good. Middle portion of my views is resizing ...
David's user avatar
  • 2,790
23 votes
2 answers
12k views

Black bars on launch screen on iPhone5 (and iPhone6)

When iPhone 5 first came out we had to go through the silliness of adding a [email protected] to the project to get the app to use the full height of the iPhone 5. In late 2014 are we still doing ...
soleil's user avatar
  • 12.6k
22 votes
9 answers
53k views

What's the device code (platform string) for iPhone 5 / 5c / 5s / iPod touch 5?

For example, is it "iPhone5,1" or "iPhone5,2" for iPhone 5? And what's the difference? If anyone has the iPhone 5, please help by running the following code and showing your result. Thank you. ...
northtree's user avatar
  • 8,889
22 votes
1 answer
13k views

How do I support the taller iPhone 5 screen size?

My app shows up letter boxed and I want it to stretch properly to fill the whole screen. I'm creating my main window with: self.mainWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] ...
David Weiss's user avatar
  • 1,842
20 votes
7 answers
13k views

Unable to handle orientation in iOS 6?

I am using - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation delegate to change the frame of my view based on the orientation type i.e., if(...
Bharath's user avatar
  • 3,021
20 votes
5 answers
11k views

My button doesn't detect touch events on iPhone (Retina 4-inch) simulator, but works in iPhone (Retina 3.5-inch) simulator

I'm getting my app ready for the iPhone 5 using the simulator and I've found a weird issue where a couple of my buttons, in one of my views, don't work in the iPhone (Retina 4-inch) simulator, but ...
BeachRunnerFred's user avatar
20 votes
2 answers
9k views

Need to access the default camera shutter sound used by the iPhone

Right now when a user presses a button I play a custom camera shutter sound. However, if possible, I would much rather just use the camera shutter sound that plays by default whenever you take a ...
user3344977's user avatar
  • 3,604
20 votes
8 answers
14k views

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

For web apps you can set the startup screen with apple-touch-startup-image What about for iPads?
AnApprentice's user avatar
19 votes
5 answers
18k views

Images for iphone 5 retina display

iPhone 5 released, with new screen size and resolution. When we used images for iPhone 4 (retina), we just added "@2x" to image name. Can anybody tell me, is it possible to add different images (...
Andrey's user avatar
  • 2,719
19 votes
1 answer
39k views

How to create Custom MKAnnotationView and custom annotation title and subtitle

I need to create above Annotation view on MKMapView. I am able to create the custom annotation view but on the tap of annotation the view need to be opened image with that big text, I am not able to ...
Abhishek's user avatar
  • 2,255
16 votes
8 answers
21k views

Same xib for iPhone4 and iPhone5 possible?

Is there any way I can design my classes for both iPhone4 and iPhone5 using the same xib?
Ambili B Menon's user avatar
16 votes
4 answers
2k views

Is it worth adding the armv7s slice on iOS6?

So I know that armv7s is optimised for the iPhone 5, and adding it will make my code run a little bit faster on that device. Does anyone know just what the difference is? Are there any benchmarks, ...
William Denniss's user avatar
15 votes
3 answers
10k views

Can I use two xibs with one viewcontroller - re: porting to iPhone 5

I just submitted my first app to the app store (yay it was just approved!). I now want to update it to work with (look nicer on) the larger iPhone 5 screen. I don't intend to change anything other ...
Dale Dietrich's user avatar
15 votes
1 answer
13k views

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

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 ...
iSaalis's user avatar
  • 622
15 votes
3 answers
4k views

iPhone 5 TabBar not functioning in proper position

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 ...
Mat's user avatar
  • 223
15 votes
3 answers
14k views

iPhone corebluetooth central Manager send data to peripheral

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 ...
TechFanatic's user avatar
  • 1,228
15 votes
2 answers
6k views

What is the best way for supporting both screen resolution of iPhone4 and iPhone5 ? - Auto layout in only iOS6

Have anyone figured out how to support both screen resolution iPhone4 and iPhone 5 ? In iOS6 we have support of Autolayout. Can that be used for iPhone4-iPhone5 screen i.e. 320x480 and 320x568. If ...
Janak Nirmal's user avatar
  • 22.7k
14 votes
3 answers
4k views

iPhone 5 TabBar not working after adding [email protected] [duplicate]

Possible Duplicate: iPhone 5 TabBar not functioning in proper position I added the magic Default-568h.png to my project and my App resized itself. So far so good. But: My UITabBar is not working ...
plaetzchen's user avatar
14 votes
2 answers
5k views

Is it sufficient to supply 3x image only for all versions on iPhone?

is it not enough to supply just 3x resolution image (e.g for a view or button) in Xcode so that it looks good on iPhone 5,6,and 6plus devices ( i.e leaving 1x and 2x in an image set blank ) My ...
silverkid's user avatar
  • 9,423
13 votes
1 answer
5k views

What is platform string for iPhone 5S & 5C?

I know that someone was able to dig out iphone6,1 platform string from IOS 7 code. However, I don't know what it maps to iPhone 5S or 5C. If anyone has early access to iPhone 5S/5C, please post ...
Trung's user avatar
  • 1,655
13 votes
4 answers
5k views

Extend app for iPhone 5 - best practice

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 ...
coder's user avatar
  • 10.5k
13 votes
1 answer
2k views

Testing iPhone 5 (4") apps on iPad 3

I was hoping to be able to test iPhone 5 (4") apps on the iPad 3 in its emulator mode. To indicate it's an iPhone 5 app I've added the [email protected] launch image and in the simulator it works ...
laktak's user avatar
  • 58.5k
13 votes
4 answers
4k views

App reject : Google Analytics ios sdk 2.0

I am using latest Google analytic iOS SDK 2.0 in my Project and app get rejection in few minute saying invalid binary. I received a email from apple review team that "Apps are not permitted to access ...
Mangesh's user avatar
  • 2,265
13 votes
2 answers
12k views

purgeIdleCellConnections: found one to purge conn=0x1ddde360

I cannot find a proper solution to this problem. I think someone can help me to clear this bug. Summary: When I use a 3G connection to test my app on the device, by the time the console shows this ...
Abdul Nasir B A's user avatar
12 votes
2 answers
8k views

How do I manage background images for the iPhone 5?

Some of my apps use custom images as the background. What is the proper way to check the screen size to place the proper image? Should it be something like this in viewDidLoad: if ([UIScreen ...
Luke Irvin's user avatar
  • 1,227
12 votes
1 answer
2k views

Will Apple reject new apps if they are not considering the new iPhone 5 resolution?

We are all aware of the increase in screen resolution in the new iPhone 5. On the other hand, the new iPhone 5 will take some time to become popular in the market. If I have an app that I am about to ...
antf's user avatar
  • 3,182
11 votes
2 answers
4k views

How to name graphic files for iPhone 5?

The iPhone 5 has just launched, so I was wondering if anyone knows how graphics files are going to be renamed for the iPhone 5? The resolutions are different between the iPhone 4S and the iPhone 5, ...
tm_forthefuture's user avatar
11 votes
4 answers
3k views

Running iPhone 5 Simulator on Snow Leopard

I am running the iOS6 SDK on my mac running Xcode 4.2 on Snow Leopard using steps from this Stack Overflow post. I'm now trying to get the iPhone 4" screen to work. I have been able to get iOS 6 to ...
Chris's user avatar
  • 5,547
10 votes
2 answers
29k views

[email protected] for iPhone5

I want to update my app so that can be deployed on iPhone5. Xcode(4.5) has a [email protected] which is a black image(640X1136). In iPhone5's simulator, it still loads the old [email protected]. I ...
Mil0R3's user avatar
  • 3,916
10 votes
6 answers
8k views

iPhone 5 support with base SDK iOS5.1

Is is possible to submit the app with base SDK iOS5.1 and with [email protected], so that application will not leave an extra black space? Our normal application is working fine on iPhone5 leaving ...
ajay agrawal's user avatar
9 votes
3 answers
8k views

How can we handle headphone play/pause button events in foreground in ios

I have an requirement that to handle headphone play/pause button events in foreground. How ever I am able to handle the same scenario in background using the below code if ([[UIApplication ...
Santosh Gurram's user avatar
9 votes
5 answers
4k views

Xcode 6 & Swift: Black bars appear above and below the viewcontroller on iOS 7 iPhone 5 device

I created a single view test app and tried running it on my iPhone 5 with iOS 7 installed. It looks like the screen is set to the iPhone 4 size and black bars appear above and below the view ...
rayg's user avatar
  • 575
9 votes
1 answer
3k views

Undo auto resizing for iPhone 5 screen after adding [email protected]

I followed the instructions in this answer: https://stackoverflow.com/a/12397309/1084932 to update my app for the new iPhone 5 screen size. Great, worked perfectly! But, I am not quite ready to make ...
chazzwozzer's user avatar
9 votes
2 answers
7k views

Developing fullscreen 4inch app in xcode [duplicate]

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 ...
k06a's user avatar
  • 18.2k
9 votes
4 answers
5k views

iOS 6 - Handle iPhone 5 screen size without [email protected]

We are working on a game, that renders a couple splash screens while loading. So we are not using Default.png or [email protected], because it makes sense for the screen to be blank on startup. So ...
jonathanpeppers's user avatar
9 votes
1 answer
3k views

CoreBluetooth[WARNING] Unknown error: 14 on iPhone 5

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 ...
mikemeli's user avatar
  • 725
9 votes
3 answers
3k views

CBperipheral uuid is null in ios 6.0.1 on i-phone5

well, I have an application that scan and connect to to a 'bluetooth le' device under ios 6.0.1 but on iphone 4s, and it works good. when upload the application to the apple store, they return me an ...
Manelonix's user avatar
  • 111
9 votes
2 answers
6k views

identifierForVendor for UUIDString returns null

I have implemented push notification in my iPhone app and for device registration i used following code in the app. [[[UIDevice currentDevice] identifierForVendor] UUIDString]; Above code works fine ...
Mehul Solanki's user avatar

1
2 3 4 5
13