ios4

Is it possible to use iPhone Simulator 3.1 from XCode 3.2.3 ?

Because the Simulator 3.2 and 4.0 in the SDK 4 do NOT actually work for iPhone simulation (which always comes out iPad and not responding at all), I ended up with 2 SDK installations, using SDK 3.1.3/Simulator 3.1 for simulation, and SDK 4 for building onto the iPhone with OS 4. (More details here.) I tried to use the old Simulator 3.1 ...

CLLocationManager initializing, releasing, initializing and then releasing causes crash?

I have a use case where the application will automatically attempt to retrieve a location, the user can deny the permission, then the user can trigger the app to look for the location again (this time allowing it), but then the app will crash. Here's the basic code and use case steps, below, what am I doing wrong? @interface AppViewCon...

iOS 4 Unable to access variable crashes app

Under iOS 4, when my app installs from xcode it crashes on the first launch but not on subsiquent launches. After commenting out some addSubView methods the debugger is finally giving me one piece of info It crashes on [super viewDidLoad]. The debugger states: Unable to access variable "button1" - (void)viewDidLoad { [super ...

Can we change the device time using an application?

Hi everyone.. Want to know whether its possible to change the time of the iPhone through an application.. Is that level of dev access granted in iOS4? My gut feeling is no, but I'm looking for a definitive Yes/No answer if possible. Note: NSTimeZone class states 'Cocoa does not provide any API to change the time zone of the computer,...

iOS 4 has an In-App SMS SDK for sending messages, but is there a way to have your App receive incoming SMS messages?

iOS 4 has an In-App SMS SDK for sending messages, but is there a way to have your App receive incoming SMS messages? Thanks so much in advance for your help! ...

Why Does an Array in iOS 4.0 Appear as __NSArrayI (And How Do I Match it)?

An object which used to identify itself as NSCFArray under previous iPhoneOSes now seems to identify itself as __NSArrayI under devices running iOS 4.0. Any idea what's up with this? I can't find it in any documentation. In addition, it doesn't match "[NSArray class]". It should be a simple array. It's defined like this: NSDictionary...

iPhone app fails to launch after install on iOS 4, works after device reboot

I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things: App launches and works, but fails on subsequent launches and just shows a black screen. ...

resignFirstResponder not hiding keyboard on textFieldShouldReturn

Hi everyone, I have a view with a UITextField which should hide the keyboard when return is pressed. My function is this: - (BOOL)textFieldShouldReturn:(UITextField *)textField { if ( textField == userPassword ) { [textField resignFirstResponder]; } return YES; } Normally the keyboard should be hidden but it stays on the screen...

Organizer will not accept Provisioning Profile, or Run App on Device, states version of OS is too Old, but it matches the latest?

Organizer states, “The version of iPhone OS doesn’t match iPhone OS supported for development”, but this is the message that I get... But as you can see, I have 4.0 (8A293) on iPhone, and the same Xcode OS (8A293). So why is it having an issue? My Organizer indicator color doesn't turn green like it used to either, only get orange. T...

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 documentation of the functions in 4.0, I see this comment. Use of this method is discourag...

AudioQueue and iOS4?

The following code used to work for me in the past. I'm trying it now with iOS4 without luck. It is working in the simulator, but I don't hear anything on the device itself. I first try to record few samples into a NSMutableData variable, and then I try to play them back. I've tried the SpeakHere sample from Apple - which works (but it ...

iPhone HTML5 App Scrolling Question

I don't know if this is even possible or what to Google to find it, but like you can add: <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> And it will make it so you can't scroll side to side, only up and down. Is there a way to make it so it doesn't do that overscroll effect...

iPad app only shows black screen after updating to iOS4 SDK.

I just opened an iPad app I'd been working on and it was working fine, until now. I open it and the screen remains black, even after it's loaded! It's an OpenGL and I just downloaded the iOS4 SDK. I also added a provisioning profile. Would any of these changes result in a completely black screen with no error for no reason at all? It lo...

Access call log in iOS4 - possible?

Hi, I know that it isn't possible to access the Call Log on iOS less than 4. My question is about the new OS - is it already possible? ...

iOS4 breaks my app [solved]

Hey, On all iPhones (we checked) which have been updated to iOS4, our app is behaving differently (buggy) than on previous OS version (3.1.3). First and most biggest problem is that on 3G (but not on 3GS), any UIAlertView freezes the app - actually it looks like that app losses focus to give it to UIAlertView, but UIAlertView doesn't ge...

iOS4 & background [UIImage setImage:]

Hi, Up to OS 3.2, I used this kind of code to load UIImageView image in background, and it worked fine... Code: - (void)decodeImageName:(NSString *)name { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; UIImage *newImage = [UIImage imageNamed:name]; [myImageView setImage:newImage]; [pool release]; } ... [se...

iphone Generating video from images

Hey, Is it possible to generate video from images in iphone OS 4.0? if so could anyone tell me how to do it ? regards John ...

Does memory consume battery in iphone iOS 4?

In new iOS4, we have fast app switching, and when we suspend the app, some data is still in memory and cost memory. So, I just wonder if leaving data in memory will consume any battery life faster, comparing with using no memory? It will be good to know for programming the app to use less memory so that the whole iphone battery is bett...

File disappears when using NSKeyedArchiver between iOS 3 and iOS 4.0

I tried to save a file in iOS 3.1.3, and I upgraded the OS to iOS 4.0. The file disappeared. I used NSKeyedArchiver and NSKeyedUnarchiver to manipulate the file. ...

Bug in Addressbook-API in iOS4?

I have discovered something strage when accessing the Addressbook-API on iOS4. //address ABMutableMultiValueRef address = ABMultiValueCreateMutable(kABDictionaryPropertyType); CFStringRef keys[5]; CFStringRef values[5]; keys[0] = kABPersonAddressStreetKey; keys[1] = kABPersonAddressCityKey; keys[2] = kABPersonAddressStateKey; k...