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
56
votes
6 answers

didReceiveRemoteNotification when in background

These kind of question has been asked a number of times but i have some specific situation going on. When my application is active and I receive a PUSH message i'm successfully able to parse the custom payloads and such. However when my application…
Erwin
  • 629
  • 1
  • 6
  • 6
55
votes
4 answers

Add/Delete UITableViewCell with animation?

I know this might sound like a dumb question, but I have looked every where. How can I do this? I know how to do this with a swype-to-delete method, but how cam I do it outside that function? Please post some code samples. Thanks!Coulton
iosfreak
  • 5,228
  • 11
  • 59
  • 102
55
votes
2 answers

How to share keychain data between iOS applications

I am describing a problem for which it took me quite some time to learn the answer. The "GenericKeychain" example is a good start at providing a wrapper for sharing keychain data between applications when using the accessGroup in the init. However,…
GtotheB
  • 2,727
  • 4
  • 21
  • 17
55
votes
3 answers

AVPlayer vs. AVAudioPlayer

The documentation for AVPlayer states the following: [The] player works equally well with local and remote media files However, the documentation for AVAudioPlayer states the following: Apple recommends that you use this class for audio playback…
joshwbrick
  • 5,882
  • 9
  • 48
  • 72
55
votes
3 answers

What are block-based animation methods in iPhone OS 4.0?

I am trying to implement a game using the iPhone OS 4.0 (iOS4?) SDK. In the previous versions of the SDK, I've been using the [UIView beginAnimations:context:] and [UIView commitAnimations] to create some animations. However, when I look at the…
kkrizka
  • 893
  • 1
  • 11
  • 16
54
votes
7 answers

How to change the UISwitch default color(blue)

How to change the default color(blue) of a UISwitch?
Prasad
  • 1,904
  • 4
  • 19
  • 24
52
votes
11 answers

How to remove gesture recogniser

SO, I am adding a gesture recogniser to an overlay view. When tapped on screen i want this overlay to go away. Having said that adding a gesture recognizer overrides the "touch up inside" and other button click events. I need this back therefore i…
CodeGeek123
  • 4,341
  • 8
  • 50
  • 79
51
votes
7 answers

Deleting all the files in the iPhone sandbox (documents folder)?

Is there an easy way to delete all the files(images) I saved in the documents folder of the app?
Jinah Adam
  • 1,125
  • 2
  • 14
  • 27
51
votes
7 answers

Force iphone app to restart programmatically?

I am trying to get my iPhone app to restart programmatically when the Logout button is pressed. Has anyone got a code sample to share? I've read that it is possible by modifying the main.m file but I couldn't find any code related to this. Any help…
manospro
  • 799
  • 1
  • 6
  • 16
51
votes
2 answers

Gyroscope vs Accelerometer?

Now that iOS 4 is no longer NDA, I would like to know what Gyroscope has to offer over the Accelerometer for developers. Is there a difference in APIs? Other things?
Moshe
  • 57,511
  • 78
  • 272
  • 425
50
votes
3 answers

How do you enable ARC project-wide in Xcode 4.2

I have an iOS app that I want to convert to using ARC. I would just use the migration tool, but it errors out for me consistently during the preview phase. I know I can use the -fobjc-arc compiler directive on a file-by-file basis, but I want to…
Alpinista
  • 3,751
  • 5
  • 35
  • 46
50
votes
26 answers

How to give space between two cells in tableview?

I want a space between two cell in table view, I want cell like this, How can i do that?
Ankit Chauhan
  • 2,375
  • 6
  • 25
  • 37
49
votes
4 answers

iOS change accessibility focus

Is there a way to set the accessibility focus programatically (App Store safe)? Any help will be greatly appreciated.
John S
  • 1,687
  • 6
  • 21
  • 28
49
votes
5 answers

Architectural and design question about uploading photos from iPhone app and S3

I want to allow users of an iPhone app to upload photos and use Amazon S3. There are 2 ways I see going about this: Upload from iPhone to my server, which proxies it then to Amazon S3. Upload from iPhone direct to S3 For option 1, the security is…
TMC
  • 8,088
  • 12
  • 53
  • 72
48
votes
10 answers

Cancel UILocalNotification

I have a problem with my UILocalNotification. I am scheduling the notification with my method. - (void) sendNewNoteLocalReminder:(NSDate *)date alrt:(NSString *)title { // some code ... UILocalNotification *localNotif =…
f0rz
  • 1,495
  • 2
  • 14
  • 26