Questions tagged [ios4]

The 2010-2011 version of the iPhone/iPad/iPod Touch/Apple TV operating system family, made by Apple.

iOS 4 was made available to the public for the iPhone and iPod Touch on June 21, 2010. It has been succeeded by which was released on October 12, 2011. The latest version of iOS 4 is 4.3.5.

This is the first major iOS release to drop support for some devices. It is also the first major iOS release that iPod Touch users do not have to pay for.

Support

The iPhone 3G and iPod Touch 2nd generation have limited features, while the iPhone 4, iPhone 3GS, iPod Touch 3rd & 4th generation have all features enabled. The iPhone and iPod Touch 1st generation cannot run iOS 4.0 and above. iPad compatibility was added with the release of iOS 4.2.1 on November 22, 2010.

Related

10735 questions
409
votes
4 answers

Design for Facebook authentication in an iOS app that also accesses a secured web service

Goal: Allow a user to authentication with Facebook into an iOS application which requires access to a protected web service that I'm running. Assumptions: There is a native authentication (and registration) system in place for those users that opt…
TMC
  • 8,018
  • 12
  • 49
  • 70
313
votes
15 answers

How do you use NSAttributedString?

Multiple colours in an NSString or NSMutableStrings are not possible. So I've heard a little about the NSAttributedString which was introduced with the iPad SDK 3.2 (or around 3.2) and is available on the iPhone as of iPhone SDK 4.0 beta. I would…
Brock Woolf
  • 44,051
  • 47
  • 117
  • 143
296
votes
10 answers

How can we programmatically detect which iOS version is device running on?

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!
meetpd
  • 8,936
  • 21
  • 68
  • 117
230
votes
9 answers

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 then use NSError?
Nic Hubbard
  • 39,231
  • 60
  • 236
  • 403
184
votes
11 answers

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, but the method is in another view controller.…
Calvin
  • 8,187
  • 7
  • 40
  • 49
166
votes
21 answers

Missing file warnings showing up after upgrade to Xcode 4

I recently upgraded to Xcode 4 (which is a great upgrade) but now I'm getting some warnings that I did not get before. I have looked through forums and other SO posts but have not come across how to fix this. The warnings I get are project level…
Scott
  • 16,077
  • 13
  • 69
  • 118
155
votes
5 answers

Trying to understand CMTime and CMTimeMake

1) CMTimeMake(1,10) means duration of 1 second and timescale of 10, or 10 frames per second. This means 1s duration of video with 10 frames? 2) CMTime lastTime=CMTimeMake(1,10); CMTime frameTime=CMTimeMake(1, 10); CMTime…
lilzz
  • 4,993
  • 12
  • 50
  • 81
150
votes
6 answers

When to use enumerateObjectsUsingBlock vs. for

Besides the obvious differences: Use enumerateObjectsUsingBlock when you need both the index and the object Don't use enumerateObjectsUsingBlock when you need to modify local variables (I was wrong about this, see bbum's answer) Is…
Paul Wheeler
  • 11,951
  • 3
  • 21
  • 27
126
votes
4 answers

Why rename synthesized properties in iOS with leading underscores?

Possible Duplicate: How does an underscore in front of a variable in a cocoa objective-c class work? When creating a new project in Xcode 4, the boilerplate code adds an underscore character when it synthesizes the ivars in the implementation…
Alpinista
  • 3,731
  • 5
  • 33
  • 45
123
votes
12 answers

Disabling user selection in UIWebView

I have an app where I load content to a UIWebView and present this. I cannot disable user interaction completely because I want the user to be able to click links. I just need to disable user selection. I found somewhere in the Internets that you…
Engin Kurutepe
  • 6,604
  • 3
  • 32
  • 63
121
votes
23 answers

Unbalanced calls to begin/end appearance transitions for

I read SO about another user encountering similar error, but this error is in different case. I received this message when I added a View Controller initially: Unbalanced calls to begin/end appearance transitions for
Raptor
  • 48,613
  • 43
  • 209
  • 344
119
votes
4 answers

No suitable application records were found

I created an App Store archive file. During validation it raises an error with the following message Please make sure that you have set up a record for this application on iTunes Connect.
little boy
  • 1,221
  • 2
  • 9
  • 8
115
votes
18 answers

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 app, but its still giving me one…
Haseeb
  • 1,187
  • 2
  • 8
  • 12
113
votes
21 answers

Couldn't register with the bootstrap Server

I just changed some code in my program and got this error: Couldn't register com.yourcompany.XXX with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in…
MadProfit
  • 1,174
  • 2
  • 8
  • 8
110
votes
5 answers

Developing cross platform mobile application

More and more mobile platforms are being launched and sdk's are available to developers. There are various mobile platform are available: Android, iOS, Moblin, Windows mobile 7, RIM, symbian, bada, maemo etc. And making of cross platform application…
sohilv
  • 1,712
  • 2
  • 16
  • 21
1
2 3
99 100