All Questions
            6,291
            questions
        
        
            299
            votes
        
        
            10
            answers
        
        
            231k
            views
        
    How can we programmatically detect which iOS version is device running on? [duplicate]
                I want to check if the user is running the app on iOS less than 5.0 and display a label in the app.
How do I detect which iOS is running on user's device programmatically?
Thanks!
            
        
       
    
            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 ...
            
        
       
    
            194
            votes
        
        
            13
            answers
        
        
            111k
            views
        
    Handling applicationDidBecomeActive - "How can a view controller respond to the app becoming Active?"
                I have the UIApplicationDelegate protocol in my main AppDelegate.m class, with the applicationDidBecomeActive method defined. 
I want to call a method when the application returns from the background,...
            
        
       
    
            128
            votes
        
        
            16
            answers
        
        
            82k
            views
        
    iPhone : How to detect the end of slider drag?
                How to detect the event when the user has ended the drag of a slider pointer?
            
        
       
    
            115
            votes
        
        
            18
            answers
        
        
            94k
            views
        
    How to change Xcode Project name
                I have developed my app in Xcode for iPhone, in start I have just named it without secnec now I want to change my app name I have replace my old app name with new one as I have found the name in my ...
            
        
       
    
            94
            votes
        
        
            4
            answers
        
        
            66k
            views
        
    How to cancel UIView block-based animation?
                I've searched loads of SO stuff and in Apple's references, but still unable to manage my problem.
What I have:
A screen with 2 UIImageViews and 2 UIButtons connected to them
2 kinds of animation:
...
            
        
       
    
            90
            votes
        
        
            6
            answers
        
        
            42k
            views
        
    How to print or log the value of CGSize object?
                I was trying to log (print) the value of CGSize object like this:
CGSize sizeOfTab = CGSizeMake(self.frame.size.width/tabCount, 49);
NSLog(@"size of tab is %@",sizeOfTab);
Is there anything wrong ...
            
        
       
    
            85
            votes
        
        
            4
            answers
        
        
            74k
            views
        
    Using [UIColor colorWithRed:green:blue:alpha:] doesn't work with UITableView seperatorColor?
                I'm trying to configure a dark gray seperator color. Why does the following do nothing?
self.tableView.seperatorStyle = UITableViewCellSeperatorStyleSingleLine;
self.tableView.seperatorColor = [...
            
        
       
    
            84
            votes
        
        
            8
            answers
        
        
            125k
            views
        
    How to parse the Manifest.mbdb file in an iOS 4.0 iTunes Backup
                In iOS 4.0 Apple has redesigned the backup process.  
iTunes used to store a list of filenames associated with backup files in the Manifest.plist file, but in iOS 4.0 it has moved this information to ...
            
        
       
    
            83
            votes
        
        
            10
            answers
        
        
            291k
            views
        
    What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS) applications?
                What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS) applications?
Also are there plans in the future to expand the amount of programming languages that iOS will ...
            
        
       
    
            80
            votes
        
        
            4
            answers
        
        
            79k
            views
        
    Install Xcode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
                I created this community wiki to bind together a number of
other Q/A's I've seen here on SO. If you're here, you've probably
installed the final version of Xcode 3.2.3 with iPhone SDK 4 (download
link,...
            
        
       
    
            68
            votes
        
        
            20
            answers
        
        
            54k
            views
        
    iPhone UINavigation Issue - nested push animation can result in corrupted navigation bar
                I keep getting the following errors:
2011-04-02 14:55:23.350 AppName[42430:207] nested push animation can result in corrupted navigation bar
2011-04-02 14:55:23.352 AppName[42430:207] nested push ...
            
        
       
    
            67
            votes
        
        
            9
            answers
        
        
            66k
            views
        
    Center Align text in UITableViewCell problem
                I'm kinda new to Objective-C and iPhone development and I've come across a problem when trying to center the text in a table cell.  I've searched google but the solutions are for an old SDK bug that ...
            
        
       
    
            66
            votes
        
        
            7
            answers
        
        
            51k
            views
        
    applicationWillTerminate when is it called and when not
                Hi I have read several questions on SO about applicationWillTerminate getting called and not getting called.
I wanted to summarize what I understood as there are several posts that speak differently.
...
            
        
       
    
            65
            votes
        
        
            7
            answers
        
        
            35k
            views
        
    AVCaptureVideoPreviewLayer doesn't fill up whole iPhone 4S Screen
                AVCaptureVideoPreviewLayer *avLayer = 
                [AVCaptureVideoPreviewLayer layerWithSession:session];
avLayer.frame = self.view.frame;
[self.view.layer addSublayer:avLayer];
I use ...
            
        
       
    
            64
            votes
        
        
            8
            answers
        
        
            68k
            views
        
    How to get keyboard with Next, Previous and Done Button?
                I want to have a keyboard which has a Next,Previous and Done button on top of it.
I have seen that in many apps.
Especially where there are forms to be filled.
I want to achieve something similar ...
            
        
       
    
            62
            votes
        
        
            21
            answers
        
        
            91k
            views
        
    How to add a UIView above the current UITableViewController
                I have difficulty adding a subview (UIView) from within the viewDidLoad method of a UITableViewController
This works:
[self.view addSubview:self.progView];
But you can see the table cell lines ...
            
        
       
    
            60
            votes
        
        
            15
            answers
        
        
            65k
            views
        
    How to check if a font is available in version of iOS?
                I'm currently working on an app that uses the "ChalkboardSE-Regular" font and my deployment target is 4.0+.  This font was not available in 4.1 but it is supported in 4.3.  What would be the best way ...
            
        
       
    
            60
            votes
        
        
            10
            answers
        
        
            64k
            views
        
    How to get audio volume level, and volume changed notifications on iOS?
                I'm writing a very simple application that plays a sound when pressing a button. Since that button does not make a lot of sense when the device is set to silence I want to disable it when the device's ...
            
        
       
    
            60
            votes
        
        
            1
            answer
        
        
            15k
            views
        
    How to make an iPhone app compatible with multiple SDK (firmware) versions
                With iOS 4 coming out soon, I have already planned to include an iAd in a future update of an app of mine. I assume that this will make my app unusable for anyone on a firmware lower than 4.0. Is ...
            
        
       
    
            59
            votes
        
        
            3
            answers
        
        
            24k
            views
        
    How do I repeat a AVAudioPlayer?
                I am just wondering how you repeat a AVAudioPlayer?
            
        
       
    
            57
            votes
        
        
            6
            answers
        
        
            79k
            views
        
    didReceiveRemoteNotification when in background
                These kind of question has been asked a number of times but i have some specific situation going on.
When my application is active and I receive a PUSH message i'm successfully able to parse the ...
            
        
       
    
            55
            votes
        
        
            3
            answers
        
        
            46k
            views
        
    What are block-based animation methods in iPhone OS 4.0?
                I am trying to implement a game using the iPhone OS 4.0 (iOS4?) SDK. In the previous versions of the SDK, I've been using the [UIView beginAnimations:context:] and [UIView commitAnimations] to create ...
            
        
       
    
            55
            votes
        
        
            3
            answers
        
        
            29k
            views
        
    AVPlayer vs. AVAudioPlayer
                The documentation for AVPlayer states the following:
  [The] player works equally well with local and remote media files
However, the documentation for AVAudioPlayer states the following:
  Apple ...
            
        
       
    
            55
            votes
        
        
            2
            answers
        
        
            35k
            views
        
    How to share keychain data between iOS applications
                I am describing a problem for which it took me quite some time to learn the answer.
The "GenericKeychain" example is a good start at providing a wrapper for sharing keychain data between applications ...
            
        
       
    
            54
            votes
        
        
            7
            answers
        
        
            50k
            views
        
    How to change the UISwitch default color(blue)
                How to change the default color(blue) of a UISwitch?
            
        
       
    
            52
            votes
        
        
            11
            answers
        
        
            74k
            views
        
    How to remove gesture recogniser
                SO, I am adding a gesture recogniser to an overlay view. When tapped on screen i want this overlay to go away. Having said that adding a gesture recognizer overrides the "touch up inside" and other ...
            
        
       
    
            52
            votes
        
        
            4
            answers
        
        
            57k
            views
        
    iOS change accessibility focus
                Is there a way to set the accessibility focus programatically (App Store safe)? Any help will be greatly appreciated.
            
        
       
    
            51
            votes
        
        
            7
            answers
        
        
            34k
            views
        
    Deleting all the files in the iPhone sandbox (documents folder)?
                Is there an easy way to delete all the files(images) I saved in the documents folder of the app?
            
        
       
    
            51
            votes
        
        
            7
            answers
        
        
            84k
            views
        
    Force iphone app to restart programmatically?
                I am trying to get my iPhone app to restart programmatically when the Logout button is pressed.
Has anyone got a code sample to share? I've read that it is possible by modifying the main.m file but I ...
            
        
       
    
            51
            votes
        
        
            2
            answers
        
        
            46k
            views
        
    Gyroscope vs Accelerometer?
                Now that iOS 4 is no longer NDA, I would like to know what Gyroscope has to offer over the Accelerometer for developers. Is there a difference in APIs? Other things?
            
        
       
    
            50
            votes
        
        
            26
            answers
        
        
            99k
            views
        
    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?
            
        
       
    
            49
            votes
        
        
            5
            answers
        
        
            9k
            views
        
    Architectural and design question about uploading photos from iPhone app and S3
                I want to allow users of an iPhone app to upload photos and use Amazon S3.  There are 2 ways I see going about this:
Upload from iPhone to my server, which proxies it then to Amazon S3.
Upload from ...
            
        
       
    
            48
            votes
        
        
            10
            answers
        
        
            40k
            views
        
    Cancel UILocalNotification
                I have a problem with my UILocalNotification.  
I am scheduling the notification with my method. 
- (void) sendNewNoteLocalReminder:(NSDate *)date  alrt:(NSString *)title
{
    // some code ...
    ...
            
        
       
    
            47
            votes
        
        
            10
            answers
        
        
            71k
            views
        
    Dial a phone number with an access code programmatically in iOS
                How can I dial a phone number that includes a number and access code programmatically in iOS?
For example:
  number: 900-3440-567
  Access Code: 65445
            
        
       
    
            46
            votes
        
        
            3
            answers
        
        
            16k
            views
        
    iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock
                I'm running Xcode 3.2.3 with the iOS 4.0 SDK. I built my app with Base SDK = iphoneos4.0, Active SDK = iphoneos4.0, Deployment Target = 3.1.3, and Architecture = standard (arm6 arm7). Compiler = GCC 4....
            
        
       
    
            45
            votes
        
        
            2
            answers
        
        
            26k
            views
        
    How do you disable auto build in xcode
                The latest Xcode builds while coding... It gets stuff wrong and slows my Mac down. How do I disable this and have it build on demand?
            
        
       
    
            45
            votes
        
        
            7
            answers
        
        
            39k
            views
        
    360° panorama libraries for ios [closed]
                Are there any libraries or classes out there to show a 360 degree panorama on the iPhone?
I found this here: http://code.google.com/p/panoramagl/
but it's not up to date and only for old versions of ...
            
        
       
    
            44
            votes
        
        
            5
            answers
        
        
            71k
            views
        
    dismissViewControllerAnimated is called but ViewController is not dismissed
                I am having a problems with the dismissViewControllerAnimated method not closing down the view.
What is happening in the app here is:
Cell in ItemViewController is selected.
View is pushed to ...
            
        
       
    
            44
            votes
        
        
            6
            answers
        
        
            95k
            views
        
    iOS installing apps without app store [closed]
                is there any LEGAL way (w/o jailbreak) to install iOS application to iOS device (ipad, iphone, ipod) without publishing to application store? For example - application for closed group of users (...
            
        
       
    
            43
            votes
        
        
            5
            answers
        
        
            31k
            views
        
    How to create dSYM file in XCode 4?
                Can you please let me know how can I create .dSYM file using XCode 4?
Thanks!
            
        
       
    
            43
            votes
        
        
            6
            answers
        
        
            52k
            views
        
    How to check programmatically if an App is installed?
                I am developing an iPhone application which will install few third party applications in an enterprise. I have the information about the bundle IDs. Is there a way to check if the application is ...
            
        
       
    
            43
            votes
        
        
            7
            answers
        
        
            82k
            views
        
    Programmatically set image and text on UIButton
                I need to create button programatically with an image for normal and highlighted state as well text. I cannot build it using Interface Builder, because I need to create buttons over a UIScrollView. ...
            
        
       
    
            42
            votes
        
        
            11
            answers
        
        
            51k
            views
        
    How to crop UIImage on oval shape or circle shape?
                Please give ideas for how to crop UIImage on oval shape or circle shape. Please share your ideas.
            
        
       
    
            42
            votes
        
        
            4
            answers
        
        
            29k
            views
        
    Play local notification default sound when displaying UIAlertView?
                I'm writing a reminders app for iPhone that displays reminders using local notifications.
If a reminder goes off while the application is running, the local notification isn't displayed. Instead, the ...
            
        
       
    
            40
            votes
        
        
            3
            answers
        
        
            33k
            views
        
    How can I create and display a UISlider programmatically in iOS?
                I found the code below in the Apple documentation and added it to my viewDidLoad method but the slider doesn't appear when I run the code.
CGRect frame = CGRectMake(0.0, 0.0, 200.0, 10.0);
UISlider *...
            
        
       
    
            40
            votes
        
        
            3
            answers
        
        
            25k
            views
        
    How to steal touches from UIScrollView?
                Today on my creative time I did some quite comprehensive research on how to steal touches from a UIScrollView and send them instantly to a specific subview, while maintaining the default behavior for ...
            
        
       
    
            39
            votes
        
        
            6
            answers
        
        
            27k
            views
        
    Day Name From NSDate?
                I would like to show the name of day in my iPhone application and i don't found the solution.
Thanks for help
            
        
       
    
            39
            votes
        
        
            7
            answers
        
        
            53k
            views
        
    How to solve this error? "property with 'retain(or strong)' attribute must be of object type"
                I have been working on an app all day which has been working fine until Xcode downloaded libraries or something and then it started having issues. I am just trying to create the getter/setter methods ...
            
        
       
    
            39
            votes
        
        
            6
            answers
        
        
            131k
            views
        
    How to keep an iPhone app running on background fully operational
                first of all, I know there is only support for voip, audio and location apps to run in background and that they will run just while the audio is been played or while using location services, etc.
...