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.

iOS 6 was announced by Apple on June 11, 2012, and released on September 19th, 2012. It has been succeeded by , which was released on September 18, 2013. iOS6 is compatible with the following devices:

  • iPhone: iPhone 3GS, iPhone 4, iPhone 4S and iPhone 5
  • iPad: iPad 2nd, 3rd, and 4th generation and iPad mini
  • iPod: iPod Touch 4th and 5th generation

This update provides more than 200 new features, including a new Maps application, Siri updates, Siri for iPad (3rd generation), Facebook integration, PassBook, Shared Photo Streams, Mail has VIPs and pull to refresh, refreshed store apps, guided access feature for children/accessibility and many more.

For a complete rundown of the new features, visit Apple iOS 6.

Find out what's new, the update notes, or the release notes. The API differences compared to iOS 5.1 can be found here.

See for further information.

8692 questions
43
votes
4 answers

Unit testing private method - objective C

I use GHUnit. I want to unit test private methods and don't know how to test them. I found a lot of answers on why to or why not to test private methods. But did not find on how to test them. I would not like to discuss whether I should test…
Geek
  • 8,280
  • 17
  • 73
  • 137
43
votes
3 answers

iOS Autolayout with UIScrollview: Why does content view of scroll view not fill the scroll view?

The following code (called in viewDidLoad) results in a fully red screen. I would expect it to be a fully green screen. Why is it red? And how can I make it all green? UIScrollView* scrollView = [UIScrollView…
dragosaur
  • 818
  • 1
  • 8
  • 10
43
votes
4 answers

Reorder cells of UICollectionView

Consider a UICollectionView with flow layout and horizontal direction. By default, cells are ordered from top to bottom, left to right. Like this: 1 4 7 10 13 16 2 5 8 11 14 17 3 6 9 12 15 18 In my case, the collection view is paged and it has been…
hpique
  • 119,096
  • 131
  • 338
  • 476
43
votes
9 answers

How do you set the duration for UICollectionView Animations?

I have a custom flow layout which is adjusting the attributes for cells when they are being inserted and deleted from the CollectionView with the following two functions, but I'm unable to figure out how you would adjust the default animation…
James Parker
  • 2,095
  • 3
  • 27
  • 48
43
votes
2 answers

Why does NSDateFormatter return nil date for these 4 time zones?

Try running this in iOS6 (haven't tested pre iOS6): NSDateFormatter *julianDayDateFormatter = nil; julianDayDateFormatter = [[NSDateFormatter alloc] init]; [julianDayDateFormatter setDateFormat:@"g"]; for (NSString *timeZone in [NSTimeZone…
lpa
  • 710
  • 6
  • 14
43
votes
2 answers

Replacement for "purpose" property of CLLocationManager

In iOS 6, the purpose property of CLLocationManager, to describe the reason for using location services (@property(copy, nonatomic) NSString *purpose) has been deprecated. What replacement, if any, is proposed by Apple?
Guillaume
  • 21,685
  • 6
  • 63
  • 95
43
votes
2 answers

EXC_BAD_ACCESS code 2 on UIAlertView in iOS6

I'm trying to figure out why im getting this crash in my app. It works perfectly fine in Xcode 4.4 running in the simulator with ios5.1, but when i switch into xcode 4.5 and ios6 I'm getting an EXC_BAD_ACCESS code 2. Here is my code: - (void)…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
42
votes
3 answers

UIRefreshControl iOS 6 xcode

Does anyone have a short example of how to implement the new UIRefreshControl into xcode. I have a UITableViewController which displays Tweets, want to be able to pull down and refresh.
Gareth
  • 512
  • 1
  • 4
  • 15
41
votes
8 answers

How to send a PDF file using UIActivityViewController

I'm trying to send a PDF using a UIActivityViewController. So far everything works fine using a fairly basic approach but the one issue I have is that when I select the send by mail option, the PDF's file name is Attachment-1 rather than…
Ian Turner
  • 1,363
  • 1
  • 15
  • 27
41
votes
6 answers

AppDelegate, rootViewController and presentViewController

I'm doing the Facebook integration tutorial, I want to show my MainViewViewController if the user has a valid token for the current state otherwise I want to show LoginViewController. MainViewAppDelegate.m - (BOOL)application:(UIApplication…
Boris-V
  • 437
  • 1
  • 4
  • 15
41
votes
3 answers

Keep getting error messages when compiling newest version of admob on IOS6 SDK

I've downloaded the newest version of googles admob sdk. But now I keep getting the following error when compiling in xcode 4.5 with the latest sdk. Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIdentifierManager", referenced from: …
Øystein
  • 1,163
  • 1
  • 12
  • 23
41
votes
5 answers

Crash on presenting UIImagePickerController under iOS 6.0

My app only supports landscape orientations via the supportedInterfaceOrientation properties. Using an iOS prior to iOS 6, my app can successfully load an instance of UIImagePickerController via presentViewController:animated:completion: even…
jenonen
  • 573
  • 1
  • 5
  • 8
41
votes
12 answers

No sound on iOS 6 Web Audio API

I was really excited to see iOS 6 supports the Web Audio API, since we make HTML5 games. However, I cannot get iOS 6 to play any sound at all using the Web Audio API with examples that work fine in desktop Chrome. Here is a HTML5 game with touch…
AshleysBrain
  • 22,335
  • 15
  • 88
  • 124
40
votes
4 answers

Where does the indexPath of dequeueReusableCellWithIdentifier:forIndexPath: get used?

Apple's documentation says of the indexPath parameter: The index path specifying the location of the cell. The data source receives this information when it is asked for the cell and should just pass it along. This method uses the index path to…
Jeremy W. Sherman
  • 35,901
  • 5
  • 77
  • 111
40
votes
6 answers

contentView not indenting in iOS 6 UITableViewCell prototype cell

I am configuring a custom UITableViewCell using a prototype cell in a Storyboard. However, all the UILabels (and other UI elements) do not seem to be added to the cell's contentView, instead being added to the UITableViewCell view directly. This…
Skoota
  • 5,280
  • 9
  • 52
  • 75