Questions tagged [ios6]
iOS 6 was announced by Apple on June 11, 2012 and released on September 19th, 2012. It runs all iPhones from 3GS and up.
            8,690
            questions
        
        
            1049
            votes
        
        
            12
            answers
        
        
            338k
            views
        
    How do I animate constraint changes?
                I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there is an ad it slides on the screen. Basic stuff.
Old style, I set the frame in an animation block.
...
            
        
       
    
            671
            votes
        
        
            38
            answers
        
        
            438k
            views
        
    Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy
                Just started using Xcode 4.5 and I got this error in the console:
  Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the ...
            
        
       
    
            606
            votes
        
        
            6
            answers
        
        
            240k
            views
        
    What are Unwind segues for and how do you use them?
                iOS 6 and Xcode 4.5 has a new feature referred to as "Unwind Segue":
  Unwind segues can allow transitioning to existing instances of scenes in a storyboard
In addition to this brief entry in Xcode ...
            
        
       
    
            407
            votes
        
        
            8
            answers
        
        
            166k
            views
        
    File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?
                I upgraded Xcode version and when using external static libraries, I get this message:
  ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture ...
            
        
       
    
            323
            votes
        
        
            10
            answers
        
        
            126k
            views
        
    How to perform Unwind segue programmatically?
                Using storyboard this is very easy. You just drag the action to "Exit". But how should I call it from my code?
            
        
       
    
            307
            votes
        
        
            12
            answers
        
        
            84k
            views
        
    UIRefreshControl without UITableViewController
                Just curious, as it doesn't immediately seem possible, but is there a sneaky way to leverage the new iOS 6 UIRefreshControl class without using a UITableViewController subclass?
I often use a ...
            
        
       
    
            288
            votes
        
        
            29
            answers
        
        
            144k
            views
        
    Evenly space multiple views within a container view
                Auto Layout is making my life difficult. In theory, it was going to be really useful when I switched, but I seem to fight it all of the time.
I've made a demo project to try to find help. Does anyone ...
            
        
       
    
            250
            votes
        
        
            15
            answers
        
        
            135k
            views
        
    Is it possible to install iOS 6 SDK on Xcode 5?
                Xcode 5 has a preferences pane that allow one to download iPhone 6.1 simulator, however I can't find a place where it allows downloading of iOS 6 SDK, thus it is not possible to set the active SDK to ...
            
        
       
    
            207
            votes
        
        
            13
            answers
        
        
            120k
            views
        
    ios simulator: how to close an app
                When you "run" the simulator from xCode, the app automatically launches, and then you can click the home button to suspend the app. What I want to do is close the app from within the simulator. So, ...
            
        
       
    
            193
            votes
        
        
            29
            answers
        
        
            157k
            views
        
    Detect if the app was launched/opened from a push notification
                Is it possible to know if the app was launched/opened from a push notification?
I guess the launching event can be caught here:
- (BOOL)application:(UIApplication *)application ...
            
        
       
    
            167
            votes
        
        
            15
            answers
        
        
            58k
            views
        
    Could not change executable permissions on the application
                Just updated to iOS 6 sdk and latest Xcode and get this when trying to build to my 3gs.
I 've added armv6 under valid architectures?
"Could not change executable permissions on the application"
            
        
       
    
            159
            votes
        
        
            13
            answers
        
        
            97k
            views
        
    UILabel sizeToFit doesn't work with autolayout ios6
                How am I supposed to configure programmatically (and in which method) a UILabel whose height depends on its text?  I've been trying to set it up using a combination of Storyboard and code, but to no ...
            
        
       
    
            159
            votes
        
        
            12
            answers
        
        
            100k
            views
        
    Programmatically open Maps app in iOS 6
                Previous to iOS 6, opening a URL like this would open the (Google) Maps app:
NSURL *url = [NSURL URLWithString:@"http://maps.google.com/?q=New+York"];
[[UIApplication sharedApplication] openURL:url];
...
            
        
       
    
            158
            votes
        
        
            9
            answers
        
        
            65k
            views
        
    Could not insert new outlet connection [duplicate]
                Could not insert new outlet connection: Could not find any information for the class and not showing any class named "ViewController"
Solutions I have done : 
- Restarted XCode
- Restarted System
- ...
            
        
       
    
            153
            votes
        
        
            6
            answers
        
        
            52k
            views
        
    Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5
                What is the best way to take advantage of the new auto layout features of iOS 6 while still providing compability with older devices on earlier versions of iOS?
            
        
       
    
            117
            votes
        
        
            31
            answers
        
        
            80k
            views
        
    Not able to type in textfield in iphone simulator using Mac Keyboard?
                I'm working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I'm switching the app to portrait mode I'm unable to type ...
            
        
       
    
            111
            votes
        
        
            7
            answers
        
        
            84k
            views
        
    Analysing Assets.car file in iOS
                I have trying to reduce the overall size of my iOS application which is currently 48MB. When I analyze sub folders, I found Assets.car is taking 41MB. I am not able to open and see which one is taking ...
            
        
       
    
            110
            votes
        
        
            13
            answers
        
        
            88k
            views
        
    Programmatically Request Access to Contacts
                Since updating to iOS 6 I've noticed that my code to add a contact to iPhone's address book no longer works. I believe this is a permission related problem, since Apple now requires user permission ...
            
        
       
    
            104
            votes
        
        
            10
            answers
        
        
            87k
            views
        
    Avoid animation of UICollectionView after reloadItemsAtIndexPaths
                UICollectionView animate items after reloadItemsAtIndexPaths is called (fade animation).
Is there a way to avoid this animation? 
iOS 6
            
        
       
    
            104
            votes
        
        
            6
            answers
        
        
            101k
            views
        
    dismissModalViewControllerAnimated deprecated
                I've just upgraded to XCode 4.5 to update my iOS app to run on the 4 inch display for the iPhone 5, but I'm getting a build error saying dismissModalViewControllerAnimated:' is deprecated on the line:
...
            
        
       
    
            104
            votes
        
        
            7
            answers
        
        
            56k
            views
        
    Alternatives to dispatch_get_current_queue() for completion blocks in iOS 6?
                I have a method that accepts a block and a completion block. The first block should run in the background, while the completion block should run in whatever queue the method was called.
For the ...
            
        
       
    
            100
            votes
        
        
            3
            answers
        
        
            30k
            views
        
    Does anyone know what the new Exit icon is used for when editing storyboards using Xcode 4.5?
                Right-clicking the Exit icon yields an empty window. Can't Ctrl-drag a connection to any IB elements or corresponding source files. Docs give no love. Doesn't appear in nib files, only storyboards. My ...
            
        
       
    
            100
            votes
        
        
            15
            answers
        
        
            57k
            views
        
    iOS 6: How do I restrict some views to portrait and allow others to rotate?
                I have an iPhone app that uses a UINavigationController to present a drill-down interface: First one view, then another, up to four levels deep. I want the first three views restricted to portrait ...
            
        
       
    
            96
            votes
        
        
            15
            answers
        
        
            78k
            views
        
    Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
                My app (iPad;iOS 6) is a landscape only application, but when I try using a UIPopoverController to display the photo library it throws this error:
Supported orientations has no common orientation with ...
            
        
       
    
            95
            votes
        
        
            1
            answer
        
        
            4k
            views
        
    Interpret XMP-Metadata in ALAssetRepresentation
                When a user makes some changes (cropping, red-eye removal, ...) to photos in the built-in Photos.app on iOS, the changes are not applied to the fullResolutionImage returned by the corresponding ...
            
        
       
    
            94
            votes
        
        
            21
            answers
        
        
            184k
            views
        
    how to fix the issue "Command /bin/sh failed with exit code 1" in iphone
                I used a cocoa static library in my application. When I compile my library I got the following error:
Shell Script invocation error:can't open input file:
/Users/sijuthomas/Library/Developer/Xcode/...
            
        
       
    
            86
            votes
        
        
            16
            answers
        
        
            107k
            views
        
    How to force a UIViewController to Portrait orientation in iOS 6
                As the ShouldAutorotateToInterfaceOrientation is deprecated in iOS 6 and I used that to force a particular view to portrait only, what is the correct way to do this in iOS 6?  This is only for one ...
            
        
       
    
            85
            votes
        
        
            4
            answers
        
        
            51k
            views
        
    Is there a way to get all values in NSUserDefaults? [duplicate]
                I would like to print all values I saved via NSUserDefaults without supplying a specific Key. 
Something like printing all values in an array using for loop. Is there a way to do so?
            
        
       
    
            83
            votes
        
        
            6
            answers
        
        
            48k
            views
        
    Setting style of UITableViewCell when using iOS 6 UITableView dequeueReusableCellWithIdentifier:forIndexPath:
                I'm trying to work out how to set the UITableViewCellStyle when using the new methods in iOS 6 for UITableView.
Previously, when creating a UITableViewCell I would change the UITableViewCellStyle ...
            
        
       
    
            80
            votes
        
        
            7
            answers
        
        
            18k
            views
        
    Assertion failure when using UISearchDisplayController in UITableViewController
                I've been trying to add simple Search functionality to a TableViewController in my app. I followed Ray Wenderlich's tutorial. I have a tableView with some data, I added the search bar + display ...
            
        
       
    
            79
            votes
        
        
            1
            answer
        
        
            17k
            views
        
    What properties can I set via an UIAppearance proxy?
                What properties can I set via an UIAppearance proxy? Apple's UIKit documentation does not list them. Is there a list of these properties?
            
        
       
    
            79
            votes
        
        
            12
            answers
        
        
            47k
            views
        
    UICollectionView flowLayout not wrapping cells correctly
                I have a UICollectionView with a FLowLayout. It will work as I expect most of the time, but every now and then one of the cells does not wrap properly. For example, the the cell that should be on in ...
            
        
       
    
            77
            votes
        
        
            3
            answers
        
        
            88k
            views
        
    Tutorial for SLComposeViewController sharing [closed]
                What are the steps I need to follow to use iOS 6's new SLComposeViewController to post to Facebook, Twitter or Sina Weibo?
            
        
       
    
            76
            votes
        
        
            5
            answers
        
        
            142k
            views
        
    Setting font on NSAttributedString on UITextView disregards line spacing
                I'm trying to set an attributed string to a UITextView in iOS 6. The problem is, if I attempt to set the font property on the attributed string, the line spacing is ignored. However, if I don't set ...
            
        
       
    
            75
            votes
        
        
            5
            answers
        
        
            42k
            views
        
    How to get the rect of a UICollectionViewCell?
                UITableView has the method rectForRowAtIndexPath:, but this does not exist in UICollectionView. I'm looking for a nice clean way to grab a cell's bounding rectangle, perhaps one that I could add as a ...
            
        
       
    
            74
            votes
        
        
            10
            answers
        
        
            74k
            views
        
    Dynamically setting layout on UICollectionView causes inexplicable contentOffset change
                According to Apple's documentation (and touted at WWDC 2012), it is possible to set the layout on UICollectionView dynamically and even animate the changes:
  You normally specify a layout object ...
            
        
       
    
            72
            votes
        
        
            7
            answers
        
        
            116k
            views
        
    UICollectionView: how to detect when scrolling has stopped
                I'm using a UICollectionView to scroll through a set of thumbnails quickly. Once scrolling ends, I'd like to display a larger hi-res version of the current thumbnail. 
How can I detect when the user ...
            
        
       
    
            72
            votes
        
        
            5
            answers
        
        
            33k
            views
        
    Pull-to-refresh in UICollectionViewController
                I want to implement pull-down-to-refresh in a UICollectionViewController under iOS 6. This was easy to achieve with a UITableViewController, like so:
UIRefreshControl *refreshControl = [[...
            
        
       
    
            70
            votes
        
        
            7
            answers
        
        
            38k
            views
        
    why UIScrollView is leaving space from top in ios 6 and ios 7
                I have turned off Autolayout and viewcontroller is embedded in navigation controller.
I am using Xcode 5, Storyboard.
I don't understand why is it leaving space from top.
Actually in storyboard i ...
            
        
       
    
            70
            votes
        
        
            4
            answers
        
        
            70k
            views
        
    Creating an android smart app banner
                Is there any solution for Android devices similar to the iOS 6 smart app banner?
Here is the code for smart app banner
<meta name="apple-itunes-app" content="app-id=311507490, affiliate-data=...
            
        
       
    
            69
            votes
        
        
            10
            answers
        
        
            43k
            views
        
    iOS6 UDID - What advantages does identifierForVendor have over identifierForAdvertising?
                Apple is changing their privacy settings for iOS6 and deprecating device UUIDs (UDIDs).  According to a WWDC presentation and the docs there are two replacements for the UDIDs, both in the UIDevice ...
            
        
       
    
            66
            votes
        
        
            17
            answers
        
        
            95k
            views
        
    shouldAutorotateToInterfaceOrientation not being called in iOS 6
                I'm using MGSplitViewController and I'm usingshouldAutorotateToInterfaceOrientation to control the size of the master view controller on rotation. 
It's all working fine on iOS 5 but on iOS 6 (both ...
            
        
       
    
            65
            votes
        
        
            2
            answers
        
        
            17k
            views
        
    Log Messages I didn't asked for in Xcode 4.5 with iOS 6.0
                since I updated Xcode to Version 4.5 and started building for iOS 6 log messages like this keep appearing:
ADDRESPONSE - ADDING TO MEMORY ONLY
I never asked for that (at least not consciously).
...
            
        
       
    
            64
            votes
        
        
            16
            answers
        
        
            119k
            views
        
    How to change navigation bar color in iOS 7 or 6?
                I want to change the color of the navigation bar color, but I'm not sure whether or not I should change the tint or the background. I know iOS 7 is going for a more flat design (even recommending ...
            
        
       
    
            64
            votes
        
        
            4
            answers
        
        
            48k
            views
        
    iOS6 viewDidUnload Deprecated
                Maybe this is a bad practice, but from the documentations that I read I got the advice to initialize objects in some cases inside the viewDidLoad method and nil it in viewDidUnload.
For example if ...
            
        
       
    
            63
            votes
        
        
            13
            answers
        
        
            60k
            views
        
    nib but didn't get a UITableView
                My application works for iOS 5.1 but for iOS 6 simulator I get the following error. 
  Terminating app due to uncaught exception
  'NSInternalInconsistencyException', reason: '-[UITableViewController
...
            
        
       
    
            63
            votes
        
        
            1
            answer
        
        
            5k
            views
        
    Create a book shelf by using UICollectionView
                I'm going to create a book shelf in one of my projects. The basic requirements are as follows:
similar to iBooks bookshelf
supports both orientations well
supports all kinds of iOS devices well (...
            
        
       
    
            61
            votes
        
        
            14
            answers
        
        
            38k
            views
        
    UICollectionView Assertion failure
                I m getting this error on performing insertItemsAtIndexPaths in UICollectionView
Assertion failure in: 
-[UICollectionViewData indexPathForItemAtGlobalIndex:], 
/SourceCache/UIKit/UIKit-2372/...
            
        
       
    
            59
            votes
        
        
            17
            answers
        
        
            53k
            views
        
    UITextView link detection in iOS 7
                I have a UITextView which is managed via Interface Builder. As data detection I have "Links" checked. In iOS 6 everything is working fine and links are highlighted and are clickable. In iOS 7 though, ...
            
        
       
    
            58
            votes
        
        
            14
            answers
        
        
            25k
            views
        
    What is the meaning of the "no index path for table cell being reused" message in iOS 6/7?
                Since starting to compile my app with iOS 6 (and since also iOS 7) I've started seeing this message.  I know that the way that UITableViews go about managing cells is different in iOS 6 but I haven't ...