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].
                                	
	iphone
    
                            
                        
                    
            220,720
            questions
        
        
            286
            votes
        
        
            8
            answers
        
        
            166k
            views
        
    Processing Symbol Files in Xcode
                I was wondering if anyone could tell me what Xcode is actually doing when it says: "Processing Symbol Files" after plugging in your device?
            
        
       
    
            285
            votes
        
        
            38
            answers
        
        
            226k
            views
        
    Detect if the device is iPhone X
                My iOS app uses a custom height for the UINavigationBar which leads to some problems on the new iPhone X. 
Does someone already know how to reliable detect programmatically (in Objective-C) if an app ...
            
        
       
    
            285
            votes
        
        
            6
            answers
        
        
            137k
            views
        
    What does ENABLE_BITCODE do in xcode 7?
                I have a problem with the embedded bitcode term.
What is embedded bitcode?
When to enable, ENABLE_BITCODE in new Xcode?
What happens to the binary when enabled, ENABLE_BITCODE in Xcode 7?
            
        
       
    
            283
            votes
        
        
            17
            answers
        
        
            94k
            views
        
    Where are iOS simulator screenshots stored?
                I have saved some screenshots in the iPhone Simulator running iOS 5, but I can't find them. 
I had this problem before, and it took me frickin' ages to find them in the file system. Is this so simple ...
            
        
       
    
            282
            votes
        
        
            21
            answers
        
        
            269k
            views
        
    Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
                Historic question. Note that 15 years later, .imagePadding is the space between the image and label.
Original question:
I would like to place an icon left of the two lines of text such that there's ...
            
        
       
    
            281
            votes
        
        
            14
            answers
        
        
            215k
            views
        
    Cocoa Touch: How To Change UIView's Border Color And Thickness?
                I saw in the inspector that I can change the background color, but I'd like to also change the border color and thickness, is this possible?
            
        
       
    
            277
            votes
        
        
            6
            answers
        
        
            91k
            views
        
    Warning: The Copy Bundle Resources build phase contains this target's Info.plist file
                I've separated a project into two builds and given each of them a plist file. Everything works fine, but I keep getting this build warning:
  Warning: The Copy Bundle Resources build phase contains ...
            
        
       
    
            275
            votes
        
        
            7
            answers
        
        
            143k
            views
        
    How to store custom objects in NSUserDefaults
                Alright, so I've been doing some poking around, and I realize my problem, but I don't know how to fix it.  I have made a custom class to hold some data.  I make objects for this class, and I need to ...
            
        
       
    
            272
            votes
        
        
            23
            answers
        
        
            285k
            views
        
    How to get device make and model on iOS?
                I was wondering if it's possible to determine what kind of iPhone (for example) the currentdevice is? I know it's possible to get the model through
    NSString *deviceType = [[UIDevice currentDevice] ...
            
        
       
    
            271
            votes
        
        
            6
            answers
        
        
            127k
            views
        
    Always pass weak reference of self into block in ARC?
                I am a little confused about block usage in Objective-C. I currently use ARC and I have quite a lot of blocks in my app, currently always referring to self instead of its weak reference. May that be ...
            
        
       
    
            270
            votes
        
        
            10
            answers
        
        
            557k
            views
        
    How much does it cost to develop an iPhone application? [closed]
                How much can a developer charge for an iPhone app like Twitterrific?
I want to know this because I need such an application with the same functionality for a new community website. I can do Ruby but ...
            
        
       
    
            270
            votes
        
        
            10
            answers
        
        
            186k
            views
        
    How to disable scrolling in UITableView table when the content fits on the screen
                I have a few (grouped style) tables in my iphone app (only on part of the screen and added with Interface Builder though, not subclassed from UITableViewController) that 80% of the time are small and ...
            
        
       
    
            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 ...
            
        
       
    
            264
            votes
        
        
            3
            answers
        
        
            138k
            views
        
    CSS submit button weird rendering on iPad/iPhone
                I noticed that if I style my buttons with CSS using radius, colors and borders, they look good but in the iphone/ipad/ipod they look terrible...shouldn't be the same rendering as in Safari Desktop??
            
        
       
    
            262
            votes
        
        
            15
            answers
        
        
            201k
            views
        
    What is App store screenshot size for 6.5" display?
                Apparently, Apple documentation can't keep up with App Store changes. Until today, the biggest (optional) display size was a 5.8-Inch Super Retina Display with a resolution of 1125 x 2436 pixels. ...
            
        
       
    
            260
            votes
        
        
            20
            answers
        
        
            342k
            views
        
    App Store Connect Screenshots Sizes for all iOS (iPhone/iPad/Apple Watch) devices
                I'm trying to submit a new application to the App Store but now Apple requires screenshots for iPhones of 4.7 inch and 5.5 inch. Anyone has these screenshot specifications (size)? 
I tried with:
640 ...
            
        
       
    
            258
            votes
        
        
            45
            answers
        
        
            211k
            views
        
    Making a UITableView scroll when text field is selected
                After a lot of trial and error, I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right.
I have a UITableView which is ...
            
        
       
    
            256
            votes
        
        
            16
            answers
        
        
            115k
            views
        
    How can my iphone app detect its own version number?
                I'm writing an iPhone app.  It's already been published, but I would like to add a feature where its version number is displayed.
I'd rather not have to do this manually with each version I release......
            
        
       
    
            254
            votes
        
        
            18
            answers
        
        
            280k
            views
        
    iPhone: How to get current milliseconds?
                What is the best way to get the current system time milliseconds?
            
        
       
    
            253
            votes
        
        
            38
            answers
        
        
            134k
            views
        
    Launch Screen storyboard not displaying image
                I'm trying to get an image to display as the launch screen from my Launch Screen.storyboard file, however the image never displays. I have labels that show up fine, but the image doesn't appear.
This ...
            
        
       
    
            252
            votes
        
        
            18
            answers
        
        
            197k
            views
        
    iOS app 'The application could not be verified' only on one device
                I have two iphone devices( 4s and 5 ) connected to my computer and i am trying to install an application in both the devices. It installs pretty well in iphone 5 but it gives an error 'The application ...
            
        
       
    
            252
            votes
        
        
            21
            answers
        
        
            167k
            views
        
    How to show "Done" button on iOS number pad keyboard?
                There is no "Done" button on the .numberPad Keyboard Type. When a user finishes entering numeric information in a text field, how can I make the number pad disappear?
I could get a "...
            
        
       
    
            249
            votes
        
        
            4
            answers
        
        
            205k
            views
        
    How to create NSIndexPath for TableView
                I need delete row 1 of a table in a function I have defined. In order to use deleteRowAtIndexPath you must use an IndexPath with a section and row defined. How can I create an indexpath like this? 
...
            
        
       
    
            248
            votes
        
        
            13
            answers
        
        
            149k
            views
        
    How to compare two NSDates: Which is more recent?
                I am trying to achieve a dropBox sync and need to compare the dates of two files. One is on my dropBox account and one is on my iPhone. 
I came up with the following, but I get unexpected results. I ...
            
        
       
    
            248
            votes
        
        
            20
            answers
        
        
            142k
            views
        
    Make UINavigationBar transparent
                How do you make a UINavigationBar transparent? Though I want its bar items to remain visible.
            
        
       
    
            245
            votes
        
        
            35
            answers
        
        
            264k
            views
        
    Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error
                I have imported framework for sending email from application in background i.e. SKPSMTPMessage Framework. Can somebody suggest why below error is shown
Undefined symbols for architecture i386:
"...
            
        
       
    
            245
            votes
        
        
            23
            answers
        
        
            309k
            views
        
    How to load a UIView using a nib file created with Interface Builder
                I'm trying to do something a bit elaborate, but something that should be possible. So here is a challenge for all you experts out there (this forum is a pack of a lot of you guys :) ).
I'm creating a ...
            
        
       
    
            243
            votes
        
        
            11
            answers
        
        
            166k
            views
        
    How can I send mail from an iPhone application
                I want to send an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application:
NSString *url =...
            
        
       
    
            242
            votes
        
        
            69
            answers
        
        
            622k
            views
        
    Apple Mach-O Linker Error when compiling for device
                I've just upgraded to xcode 4.0 and I can no longer deploy to iPhone, I get a Apple Mach-O Linker Error, it still works for the simulator though.
    Ld /Users/yveswheeler/Library/Developer/Xcode/...
            
        
       
    
            241
            votes
        
        
            11
            answers
        
        
            99k
            views
        
    Xcode 'Build and Archive' menu item disabled
                I have been using the new 'Build and Archive' feature of the latest Xcode 3.2.3.  I like it.
Now I noticed that it is always disabled for some reason.  I can't seem to figure out what I changed to ...
            
        
       
    
            241
            votes
        
        
            8
            answers
        
        
            147k
            views
        
    iPhone - Get Position of UIView within entire UIWindow
                The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns the position of the UIView in relation to it's immediate superview.
I need to determine the ...
            
        
       
    
            241
            votes
        
        
            43
            answers
        
        
            297k
            views
        
    A valid provisioning profile for this executable was not found for debug mode
                I am getting this error while I am trying to debug my app on device.
I created development provisioning profile as it is mentioned at the developer portal. My development device is selected in the ...
            
        
       
    
            239
            votes
        
        
            7
            answers
        
        
            92k
            views
        
    applicationWillEnterForeground vs. applicationDidBecomeActive, applicationWillResignActive vs. applicationDidEnterBackground
                Which is the proper delegate to implement when an application is waking up from being in the background and you want it to prep it to be active?
applicationWillEnterForeground vs ...
            
        
       
    
            239
            votes
        
        
            20
            answers
        
        
            272k
            views
        
    Get push notification while App in foreground iOS
                I am using push notification service in my app. When app is in background I am able to see notification on notification screen(screen shown when we swipe down from top of iOS device). But if ...
            
        
       
    
            237
            votes
        
        
            9
            answers
        
        
            140k
            views
        
    How can I use NSError in my iPhone App?
                I am working on catching errors in my app, and I am looking into using NSError.  I am slightly confused about how to use it, and how to populate it.
Could someone provide an example on how I populate ...
            
        
       
    
            237
            votes
        
        
            6
            answers
        
        
            250k
            views
        
    Styling input buttons for iPad and iPhone
                I'm using CSS to style the input buttons on my website, but on IOS devices the styling is replaced by Mac's default buttons. Is there a way to style buttons for iOS, or a way to maybe make a hyperlink ...
            
        
       
    
            237
            votes
        
        
            16
            answers
        
        
            346k
            views
        
    Get User's Current Location / Coordinates
                How can I store the user's current location and also show the location on a map?
I am able to show pre-defined coordinates on a map, I just don't know how to receive information from the device.
...
            
        
       
    
            237
            votes
        
        
            12
            answers
        
        
            302k
            views
        
    How do you create a Swift Date object?
                How do you create a date object from a date in swift xcode.
eg in javascript you would do:
    var day = new Date('2014-05-20');
            
        
       
    
            236
            votes
        
        
            11
            answers
        
        
            176k
            views
        
    iOS 7 Navigation Bar text and arrow color
                I want to set background for Navigation Bar to be black and all colors inside it to be white.
So, I used this code :
[[UINavigationBar appearance] setTitleTextAttributes:
     [NSDictionary ...
            
        
       
    
            236
            votes
        
        
            17
            answers
        
        
            114k
            views
        
    Change font size of UISegmentedControl
                Can anyone please tell me how can I change the font type and size of UISegmentedControl?
            
        
       
    
            234
            votes
        
        
            23
            answers
        
        
            218k
            views
        
    How to deselect a selected UITableView cell?
                I am working on a project on which I have to preselect a particular cell.
I can preselect a cell using -willDisplayCell, but I can't deselect it when the user clicks on any other cell.  
- (void)...
            
        
       
    
            234
            votes
        
        
            13
            answers
        
        
            156k
            views
        
    Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?
                I'd like to have iOS to open URLs from my domain (e.g. http://martijnthe.nl) with my app whenever the app is installed on the phone, and with Mobile Safari in case it is not.
I read it is possible to ...
            
        
       
    
            231
            votes
        
        
            24
            answers
        
        
            412k
            views
        
    How to call gesture tap on UIView programmatically in swift
                I have a UIView and and I have added tap gesture to it: 
let tap = UITapGestureRecognizer(target: self, action: Selector("handleTap:"))
tap.delegate = self
myView.addGesture(tap)
I am trying to call ...
            
        
       
    
            231
            votes
        
        
            20
            answers
        
        
            321k
            views
        
    missing private key in the distribution certificate on keychain
                I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our app, I requested from our ...
            
        
       
    
            230
            votes
        
        
            5
            answers
        
        
            209k
            views
        
    @property retain, assign, copy, nonatomic in Objective-C
                As someone that's new to Objective-C can someone give me an overview of the retain, assign, copy and any others I'm missing, that follow the @property directive? What are they doing and why would I ...
            
        
       
    
            229
            votes
        
        
            15
            answers
        
        
            160k
            views
        
    How to animate the change of image in an UIImageView?
                I have an UIImageView with an image. Now I have a completely new image (graphic file), and want to display that in this UIImageView. If I just set 
myImageView.image = newImage;
the new image is ...
            
        
       
    
            229
            votes
        
        
            22
            answers
        
        
            140k
            views
        
    Stop UIWebView from "bouncing" vertically?
                Does anyone know how to stop a UIWebView from bouncing vertically? I mean when a user touches their iphone screen, drags their finger downwards, and the webview shows a blank spot above the web page I ...
            
        
       
    
            229
            votes
        
        
            8
            answers
        
        
            46k
            views
        
    iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing
                What are the best technologies to use for behavior-driven development on the iPhone? And what are some open source example projects that demonstrate sound use of these technologies? Here are some ...
            
        
       
    
            228
            votes
        
        
            9
            answers
        
        
            107k
            views
        
    Preserve HTML font-size when iPhone orientation changes from portrait to landscape
                I have a mobile web application with an unordered list containing multiple items with a hyperlink inside each li:
My question is: how can I format the hyperlinks so that they DON'T change size when ...
            
        
       
    
            228
            votes
        
        
            9
            answers
        
        
            146k
            views
        
    QuotaExceededError: Dom exception 22: An attempt was made to add something to storage that exceeded the quota
                Using LocalStorage on iPhone with iOS 7 throws this error. I've been looking around for a resolvant, but considering I'm not even browsing in private, nothing is relevant.
I don't understand why ...