Questions tagged [iphone]

DO NOT use this tag unless you are addressing Apple's iPhone and/or iPod touch specifically. For questions not dependent on hardware, use the tag [ios]. More tags to consider are [xcode] (but only if the question is about the IDE itself), [swift], [objective-c] or [cocoa-touch] (but not [cocoa]). Please refrain from questions regarding the iTunes App Store or about iTunes Connect. If using C#, tag with [mono].

The iPhone is a smartphone made by Apple Inc. It was first launched on June 29, 2007, and has since been through several major hardware and software revisions. The iPhone, iPad, and iPod touch each run iOS (previously iPhone OS). Native iOS applications are written in Objective-C or in Swift since the release of iOS8, using the Cocoa Touch frameworks. These frameworks are distinct from Cocoa which is used exclusively for macOS development, though the two frameworks share many classes and features.

Most questions related to iPhone are also applicable to iPod touch devices since they support similar resolutions, input methods and features.

In all cases, questions that are specific to the features of a particular device should use the appropriate tag. Please refrain from questions regarding the App Store.

The iPhone has several hardware features and sensors which are accessible to native applications (and in some cases, to web apps via special APIs), including:

  • 3-axis accelerometer
  • 3-axis gyroscope
  • Magnetometer
  • GPS and A-GPS
  • Proximity sensor
  • Microphone, speaker, and headphone port
  • Front (since iPhone 4) and rear cameras, and LED flash
  • Lightning Dock Connector (iPhone 5 and above and iPod Touch 5th generation and above) and 30-pin dock connector (all others)
  • Fingerprint recognition system (Touch ID introduced with iPhone 5s)
  • Barometer (Introduced along with iPhone 6)
  • Multi-Touch touchscreen display (3D Touch introduced with iPhone 6s)
  • Dual Camera (iPhone 7 Plus, iPhone 8 Plus, iPhone X)
  • Face recognition system (Face ID introduced with iPhone X)

While native iPhone and iPod touch applications use the Cocoa Touch frameworks and are developed using the Xcode IDE, and questions about classes that exist in both Cocoa and Cocoa Touch can accurately wear both tags, most questions should use only one or the other.


Models

  • iPhone (1st generation)
  • iPhone 3G
  • iPhone 3GS
  • iPhone 4
  • iPhone 4S
  • iPhone 5
  • iPhone 5C
  • iPhone 5S
  • iPhone SE
  • iPhone 6
  • iPhone 6 Plus
  • iPhone 6S
  • iPhone 6S Plus
  • iPhone 7
  • iPhone 7 Plus
  • iPhone 8
  • iPhone 8 Plus
  • iPhone X
  • iPhone XS
  • iPhone XS Max
  • iPhone XR
  • iPhone 11
  • iPhone 11 Pro
  • iPhone 11 Pro Max
  • iPhone 12
  • iPhone 12 mini
  • iPhone 12 Pro
  • iPhone 12 Pro Max
  • iPhone 13
  • iPhone 13 mini
  • iPhone 13 Pro
  • iPhone 13 Pro Max

Resources

Apple Official Documentations

Books

  • Apress - Beginning iOS 6 development
  • Apress - Learn Objective-C on the Mac
  • Oreilly - iPhone App Development The Missing Manual
  • Objective-C Programming: The Big Nerd Ranch Guide
  • iOS 7 by Tutorials
  • Beginning iPhone SDK Programming with Objective-C

Blogs with Good Tutorials Collection

FAQ


Related Tags

221329 questions
50
votes
4 answers

Best architecture for an iOS application that makes many network requests?

I'm in the process of rethinking my approach to the request architecture of a large app I'm developing. I'm currently using ASIHTTPRequest to actually make requests, but since I need many different types of requests as a result of many different…
kevboh
  • 5,207
  • 5
  • 38
  • 54
50
votes
10 answers

How to resize the image programmatically in objective-c in iphone

I have an application where I am displaying large images in a small space. The images are quite large, but I am only displaying them in 100x100 pixel frames. My app is responding slowly because of the size fo the images I am using. To improve…
Madan Mohan
  • 8,764
  • 17
  • 62
  • 96
50
votes
8 answers

How to fix Xcode error: Could not locate device support files on iPhone with Xcode

I have this error for the new iPhone X: Could not locate device support files. This iPhone X (Model A1865, A1901, A1902, A1903) is running iOS 11.1 (15B93), which may not be supported by this version of Xcode. I'm running the latest version of…
user2888798
  • 688
  • 1
  • 6
  • 14
50
votes
7 answers

Extra bottom space/padding on iPhone X?

On the iPhone X in portrait mode, if you set a bottom constraint to safe area to 0, you will end up with an extra space at the bottom of the screen. How do you get programmatically the height of this extra padding ? I managed to manually determine…
standousset
  • 1,092
  • 1
  • 10
  • 25
50
votes
3 answers

Development team has reached maximum number of registered iPhone devices

Whenever I try to build an iOS app to my iPhone device I get the following error: Your development team has reached the maximum number of registered iPhone devices. I've previously had a Developer Program Membership that is now expired that I used…
Oskar Persson
  • 6,605
  • 15
  • 63
  • 124
50
votes
2 answers

Subdirectories within an iOS application

Is there a way to have directories within an .app? At the moment if I add a file into Xcode, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle.
gak
  • 32,061
  • 28
  • 119
  • 154
50
votes
4 answers

How to pass userInfo in NSNotification?

I am trying to send some data using NSNotification but get stuck. Here is my code: // Posting Notification NSDictionary *orientationData; if(iFromInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { orientationData = [NSDictionary…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
50
votes
12 answers

How to get screen size using code on iOS?

How to get the iPhone screen size to give calculation?
haisergeant
  • 1,111
  • 2
  • 13
  • 32
50
votes
6 answers

Retina display and [UIImage initWithData]

I need to initialise images from raw data downloaded from a server which delivers the correct size of image based on the type of iPhone client. I know that I should be setting the scale value to be 2.0 on the 640x960 display, however this is a…
Sam
  • 3,659
  • 3
  • 36
  • 49
50
votes
4 answers

Application Loader Warning - Resulting API Analysis File is too large

I am getting a strange error when I submit my application via application loader tool. The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message. The…
goelv
  • 1,039
  • 2
  • 11
  • 21
50
votes
10 answers

Best way to programmatically detect iPad/iPhone hardware

The reason I need to find out is that on an iPad, a UIPickerView has the same height in landscape orientation as it does in portrait. On an iPhone it is different. The iPad programming guide introduces an "idiom" value to UIDevice: UIDevice*…
Adam Eberbach
  • 12,309
  • 6
  • 62
  • 114
50
votes
3 answers

Why not use development provisioning instead of ad hoc?

I was under the impression that when you use a development provisioning profile for a build of an app, only the specified developers can deploy that build to a phone. But I just deployed a build that uses a development profile to a phone using Xcode…
50
votes
5 answers

Implementation of "Automatic Lightweight Migration" for Core Data (iPhone)

I would like to make my app able to do an automatic lightweight migration when I add new attributes to my core data model. In the guide from Apple this is the only info on the subject I could find: Automatic Lightweight Migration To request…
RickiG
  • 11,380
  • 13
  • 81
  • 120
50
votes
4 answers

When should I initialize a view controller using initWithNibName?

When should I use init: and when should I use initWithNibName:bundle: when creating a view controller?
Anthony Glyadchenko
  • 3,572
  • 7
  • 48
  • 66
50
votes
9 answers

How to renew an iPhone development certificate?

My development certificate has expired. What is the correct method of renewing it? Do you revoke the expired certificate & submit a new Certificate Signing Request? Do provisioning profiles have to be recreated? Are there any side-effects of doing…
Robin
  • 565
  • 1
  • 6
  • 9
1 2 3
99
100