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

10676 questions
74
votes
13 answers

Offline iOS web app: loads my manifest, but doesn't work offline

I'm writing a web app to be used offline on iOS. I've created a manifest, am serving it up as text/cache-manifest, and it usually works fine, when running inside Safari. If I add it as an app to my home screen, then turn on Airplane mode, it can't…
Ken
  • 873
  • 2
  • 9
  • 8
74
votes
13 answers

Get a list of all contacts on iOS

I want to get a list of all contacts of an iPhone. I checked Address Book reference, I may missed something but I didn't see it provides a method to get a list of contacts.
Chiron
  • 20,081
  • 17
  • 81
  • 133
70
votes
12 answers

NSArray of weak references (__unsafe_unretained) to objects under ARC

I need to store weak references to objects in an NSArray, in order to prevent retain cycles. I'm not sure of the proper syntax to use. Is this the correct way? Foo* foo1 = [[Foo alloc] init]; Foo* foo2 = [[Foo alloc] init]; __unsafe_unretained Foo*…
Emile Cormier
  • 28,391
  • 15
  • 94
  • 122
68
votes
20 answers

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 animation can result in corrupted navigation…
joshholat
  • 3,371
  • 9
  • 39
  • 48
66
votes
7 answers

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. For IOS (without multitasking) it is called…
Anand
  • 4,182
  • 6
  • 42
  • 54
66
votes
9 answers

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 has been fixed and these don't work for me. Some…
Magpie
  • 6,983
  • 14
  • 51
  • 67
65
votes
7 answers

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 AVCaptureVideoPreviewLayer to display video on the view. But…
Rafer
  • 1,170
  • 2
  • 10
  • 15
64
votes
8 answers

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 to above keyboard How can I get that?
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
64
votes
9 answers

How to include and use new fonts in iPhone SDK?

I want to use font "MgOpen Modata" in my iphone App. But I dont see it in the font list in Property inspector. How do I include that font so that I can use it?
meetpd
  • 9,150
  • 21
  • 71
  • 119
62
votes
21 answers

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 bleed through the UIView progView. I've tried this…
user558096
  • 725
  • 3
  • 9
  • 9
60
votes
15 answers

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 to go about checking if the font exists and if it…
tg2007
  • 841
  • 1
  • 9
  • 18
60
votes
10 answers

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 audio volume is zero. (And subsequently reenable…
MacLemon
  • 701
  • 1
  • 6
  • 6
60
votes
1 answer

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 there a way to change those variables and the .xib…
Dyldo42
  • 2,358
  • 2
  • 22
  • 26
59
votes
3 answers

How do I repeat a AVAudioPlayer?

I am just wondering how you repeat a AVAudioPlayer?
Seb OH
  • 785
  • 1
  • 6
  • 15
57
votes
7 answers

Circular Progress Bars in IOS

I want to create a circular progress bar like the following: How can I do that using Objective-C and Cocoa? How I started doing it was creating a UIView and editing the drawRect, but I am bit lost. Any help would be greatly appreciated. Thanks!
Kermit the Frog
  • 3,949
  • 7
  • 31
  • 39