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
9 answers

Xcode/iOS5: Move UIView up, when keyboard appears

I'd like to move up my view, when the keyboard is shown. The keyboard (height: 216) should push up my view with it's height. Is this possible with a simple code?
filou
  • 1,609
  • 5
  • 26
  • 53
50
votes
2 answers

Add an object to the beginning of an NSMutableArray?

Is there an efficient way to add an object to start of an NSMutableArray? I am looking for a good double ended queue in objective C would work as well.
gurooj
  • 2,100
  • 4
  • 21
  • 25
50
votes
2 answers

Xcode 4 "Transferring package" pathologically slow after deleting app

I have noticed that when performing native debugging on Xcode 4 if I have my app installed, then delete the app, then attempt to debug again from Xcode 4, the time it takes to perform the step "Transferring package" is pathologically slow. Has…
Bill
  • 517
  • 3
  • 2
50
votes
26 answers

How to give space between two cells in tableview?

I want a space between two cell in table view, I want cell like this, How can i do that?
Ankit Chauhan
  • 2,375
  • 6
  • 25
  • 37
50
votes
14 answers

"Pushing the same view controller instance more than once is not supported" exception

I am using the following code to retrieve some messages and putting them into my inbox. MyInboxVC *inboxVC=[MyInboxVC get ]; //upload all the pending messages UINavigationController *devNavController=[[MyappMgr get]getDeveloperNavigationController…
Suchi
  • 9,989
  • 23
  • 68
  • 112
50
votes
15 answers

Custom UINavigationBar Background

I've been trying to set up a custom background for the whole of my NavigationBar (not just the titleView) but have been struggling. I found this thread http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0 But am not sure how to…
Anthony Main
  • 6,039
  • 12
  • 64
  • 89
50
votes
11 answers

UIBarButtonItem with color?

Is it possible to have a red UIBarButtonItem?
4thSpace
  • 43,672
  • 97
  • 296
  • 475
50
votes
10 answers

What happens to SDWebImage Cached Images in my app when the image file on the server changes?

I am using the SDWebImage library to cache web images in my app: https://github.com/rs/SDWebImage/blob/master/README.md Current Usage: [imageView setImageWithURL:[NSURL URLWithString:profilePictureUrl] placeholderImage:[UIImage…
gotnull
  • 26,454
  • 22
  • 137
  • 203
50
votes
5 answers

iOS memory allocation - how much memory can be used in an application?

Does iOs use non-contiguous or contiguous allocation in memory management? suppose if user allocates more than 128 MB, Will the App be closed? or Memory will be managed by iOS as if user allocates memory and misses deallocate in Deallocate method?…
user141302
50
votes
10 answers

Flutter iOS build failed an error of pod files: Podfile is out of date

I'm trying to build my app on the ios simulator(ios 13), but the build fails and gives an error of pod files: Podfile is out of date This is the error. Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Warning: Podfile is out of date …
Karel Debedts
  • 5,226
  • 9
  • 30
  • 70
50
votes
2 answers

All media queries for iPhone 14 (Pro, Max, Plus, Mini) and older ones

What are the CSS media queries to target Apple's latest devices? 2019 devices: iPhone 11, iPhone 11 Pro and iPhone 11 Pro Max. 2020 devices: iPhone 12 mini, iPhone 12, iPhone 12 Pro and iPhone 12 Pro Max. 2021 devices: iPhone 13 mini, iPhone 13,…
Ruud
  • 2,520
  • 4
  • 14
  • 16
50
votes
12 answers

key chain warning The “System Roots” keychain cannot be modified

Am landed with following error "“System Roots” keychain cannot be modified" when I double tap the certificate. After googling I come to know that drag and drop the certificate is the solution for this. But even after doing this also in code it says…
nik
  • 2,289
  • 6
  • 37
  • 60
50
votes
6 answers

Xcode - iPhone - profile doesn't match any valid certificate-/private-key pair in the default keychain

I tried to add my iPhone to Xcode4 to test my Application on it. I added the device in the Apple Developer-Center and downloaded the Provision-Profile. We pay 99$ per month for the account and I'm not the only person who use this account. So there…
Kevin Glier
  • 1,346
  • 2
  • 14
  • 30
50
votes
17 answers

Xcode4 Linking Problem. File was built for archive which is not the architecture being linked (arm6)

Recently, I switched to Xcode4 and when I compile my project I got following error. ld: warning: ignoring file /Users/myname/Library/Developer/Xcode/DerivedData/appname-hezrgyqimckztgbdlslkavphdclw/Build/Products/Debug-iphoneos/libTapkuLibrary.a,…
Seunghoon
  • 5,632
  • 5
  • 35
  • 41
50
votes
8 answers

Best radio-button implementation for IOS

I would like to ask if there are examples out there on how to implement radio-button options on an iPhone app. I find the Picker View quite big for a simple selection feature. I'm not sure if Apple excluded radio buttons on purpose, and whether if…
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
1 2 3
99
100