The version of iOS (formerly iPhone OS) was released by Apple on 13 Oct 2011. iOS 5 runs on iPhone 3GS, iPhone 4, iPhone 4S, iPad and iPod Touch devices 3rd and 4th generation.
163
votes
4answers
25k views
Should IBOutlets be strong or weak under ARC?
I am developing exclusively for iOS 5 using ARC. Should IBOutlets to UIViews (and subclasses) be strong or weak?
The following:
@property (nonatomic, weak) IBOutlet UIButton *button;
Would get rid ...
124
votes
5answers
50k views
Some questions about Automatic Reference Counting in iOS5 SDK
I'm currently developing an app for iPad. The development started for iOS 4.2 and is now continuing (and I think will be completed) for iOS 4.3.
I just read about ARC in iOS 5, and basically I ...
121
votes
4answers
26k views
Disable Automatic Reference Counting for Some Files
I have downloaded the iOS 5 SDK and found that ARC is a great feature of the new Apple compiler. For the time being, many third party frameworks don't support ARC. Could I use ARC for my new code and ...
119
votes
14answers
50k views
Loaded nib but the view outlet was not set - new to InterfaceBuilder
I added a new nib file to my project, and all I want to do is have it display on the screen for now.
However, when I click on the toolbar icon that is supposed to take me to the view that I created, ...
116
votes
5answers
29k views
Semantic Issue: Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
I'm currently using the iOS 5 SDK trying to develop my app.
I'm trying to make an NSString a property, and then to synthesize it in the .m file (I have done this before with no issues). Now, I came ...
115
votes
1answer
11k views
Xcode 4.2 - declaration of '…' will not be visible outside of this function warning
I use Apple Reachability class from Apple Sample code Reachability
http://developer.apple.com/library/ios/#samplecode/Reachability/Listings/ReadMe_txt.html
in Xcode 4.2 and new Apple 3.0 compiler I ...
97
votes
6answers
53k views
iOS 5 Best Practice (Release/retain?)
As a beginning iPhone programmer, what is the best practice for writing apps to be used either with iOS 5 or older versions? Specifically, should I continue using the release/retain of data, or should ...
86
votes
19answers
27k views
iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior
I've built a small app using storyboards and it ran great. Just before final testing I decided to try it out to see if it runs on iOS 4.3. I clicked on the gray 5.0 in the project settings and ...
86
votes
7answers
30k views
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
I just recently downloaded the Xcode 4.2 with iOS 5 SDK package and I immediately noticed that I am unable to use my iPhone 3Gs with iOS 4.2.1 for debugging. I am only able to debug and test on my ...
84
votes
7answers
20k 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?
76
votes
7answers
36k views
How to build for armv6 and armv7 architectures with iOS 5
In iOS5 Apple drops the armv6 architecture from the ARCHS_STANDARD_32_BIT.
In order to keep the support for iPhone3G I still want to compile in armv6 even in iOS5.
Did anyone find a solution for ...
72
votes
7answers
16k views
AVAudioRecorder is broken on iOS 5
I use AVAudioRecorder to record, it worked fine on iOS 4 devices, but yesterday we found out recording is broken on iOS5. Using the iPhone 5 simulator I got following error:
2011-08-02 ...
63
votes
7answers
9k views
To ARC or not to ARC? What are the pros and cons?
I've yet to use ARC, since the majority of the code in the project I'm working on at the moment was written pre-iOS 5.0.
I was just wondering, does the convenience of not retaining/releasing ...
55
votes
4answers
13k views
iOS5 NSURLConnection methods deprecated
I'm trying to write an iOS app that makes asynchronous requests to get data over the network. It seems like a lot of people recommend using NSURLConnection for this, and frequently mention the ...
54
votes
10answers
23k views
How to enable iOS 5 Safari Reader on my website?
How does the Reader function of Mobile Safari in iOS 5 work? How do I enable it on my site. How do I tell it what content on my page is an article to trigger this function?