iphone-sdk-4.0

Unable to Build 3.1.3 Device on iPhone SDK 4?

I just installed iPhone SDK 4, and i couldnt build app on 3.1.3 devices? it says the SDK 3.1.3 is missing, did apple remove the previous SDK? How do we test on the previous iPhone OS version? ...

Compiling for iOS 3.1.3, using xcode 3.2.3 (and iOS 4 that came with it)

I've downloaded the final version (and never installed any beta versions before) of xcode 3.2.3 with sdk 4, and now I can't seem to find a way to compile my app for a 3.1.3 iOS. Does anybody know how can I do that ? ...

MPMoviePlayercontroller not working in iphone SDK 4 ? - Help Needed

Hello all, Till yesterday My MPMovieController was wokring fine in iPhone SDK 3 . But yesterday when I upgraded the SDK ti iphone SDK 4 my movieplayer stops working it is giving me a deprecation warning on the following line (They have deprecated lots of methods ) moviePlayer.movieControlMode = MPMovieControlModeDefault; My full code...

error: request for member 'multitaskingSupported' in something not a structure or union

I tried to run this code on iPhone Simulator 4.0 and get that error //#ifdef __IPHONE_4_0 UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported) { } //#endif Does anyone have worked on the Multitasking with Simulator before ? Pl...

How can I avoid a leak with this block-based animation sequence?

I'm working on animating little subviews throughout my UI using a flip transition. To get the Flip transition to work correctly, I create a temporary UIView to provide the context, run the transition, and then need to clean up afterwards. But I'm having trouble figuring how to release the object without crashing the application. Here's t...

Loading User Defaults That Changed While App In Background On iPhone OS 4.0

I have several user defaults set in my app: Snap Shots ON/OFF Startup Tips ON/OFF Game Music ON/OFF iPod Music ON/OFF Sound Effects ON/OFF Reset All Dolls ON/OFF When my app enters the backgound (in OS 4.0), my saveDefaults: method gets called from the applicationWillResignActive:(UIApplication *) method. Then in the applicationWillEn...

UITableView.backgroundColor in SDK 4.0

I have an app that has a custom background for a UITableView. Up to the SDK 3.1.3 this was done by setting the table's backgroundColor property to [UIColor clearColor] and placing the table on top of another view (a UIImageView' for example). SDK 3.2 added thebackgroundViewproperty, and the same effect could be achieved by setting it ton...

Access individual frames of video streamed from the Internet on iPhone

Hi, I am wondering if it is possible to access individual frames of video streamed from the Internet using the latest iOS4 SDK? What I would like to do is to access every frame in real time, manipulate it and display back on the screen. Thanks, Andrzej ...

Illegally mutated the NSFetchedResultsController's fetch request

I'm getting the following exception is thrown under iOS 4.0 but not under 3.0 using core data. I'm populating a tableview controller with data from a core data store. Then drilling down on a row and requesting the details for that row and passing them onto a detail view. FATAL ERROR: The persistent cache of section information does not...

AlertView too high with iPhone OS 4

I had a UIAlertView window which worked fine in iPhone OS 3.2.3, with SDK 3.1.3 and XCode 3.2.1. But after I updated the iPhone to OS 4.0 by iTunes, consequently had to upgrade the SDK to 4.0 (with XCode 3.2.3), the UIAlertView window turns out too high when popping up, and only drops down to the correct position after the textField is ...

Do background applications *ever* quit in iOS 4?

I don't fully understand Apple's iOS 4 model, I've been poring through documentation for hours, but I still appreciate some help. Do backgrounded iPhone apps ever quit? For example, when I close a location-tracking app such as Loopt, it will be backgrounded but will it subscribe to the OS's significant locations service? According to ap...

How to make an iAd integrated iPhone app working on previous versions of iPhone OS?

As title described, I integrated iAd into my iPhone apps. Everything worked fine in the iPhone simulator (iOS4). However, when I try to install it on my iPhone(version 3.1.3), I got an error: dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd Referenced from: /var/mobile/Applications/... Reason: image not found...

How to refresh iAd and specify keyword manually?

I successfully integrated iAd into my iPhone app. However, I can't find a way to refresh the ad manually. I couldn't find a way to specify keywords for the ad either. How does iAd work after all? Does it just show some ads randomly? ...

iPhone SDK: stuck with Leopard and SDK 3.1.3; need advice about how to move on

While this question does not involve any code, it does involve problems stemming from the fact that I don't own a Mac, and the impact that has on apps I'm working on where I do have access to a Mac. It's also a long read, so please bear with me. iOS 4 and iPhone SDK 4 have been released; with that, I've made the obligatory upgrade on my...

AudioQueueStart fails when iphone app running in background iOS4.0

I'm having difficulties starting the AudioQueue when my app is in the background with iOS4.0 The code works fine when the app is active, but fails with -12985 code when running in the background. err = AudioQueueStart( queueObject, NULL ); if( err ) { NSLog(@"AudioQueueStart failed with %d", err); ...

Error message after SDK4 upgrade building for ipod touch

I have been successfully building and running applications on my ipod touch (Software version 3.1.3) for months. I recently upgraded to SDK4, and since then, I am not able to build any of my applications for my device. I get the following error: Command /usr/bin/codesign failed with exit code 1 Expanded, it reads the following for ...

iOS4: Correct SDK and Deployment Target Settings in Xcode

Hi, I upgraded my Xcode from 3.1.2 to Xcode Version 3.2.3 and upgraded my device to 4.0 OS. I have set my Base SDK to iPhone Device OS 4.0 and the iPhone OS deployment Target to iPhone OS 3.1.2. When I run my application (which was created in 3.1.2) on device under iOS4.0, and I see problems such as dates not displayed and the "back" ...

iPhone SDK4.0 with OS3.0

I upgraded to SDK4.0 - but the lowest OS supported is 3.2 (which is iPad). How could I compile code for OS3.0 with SDK4.0 ? ...

iPhone Regular Expression Capture Groups

Since Apple now appears to be rejecting apps that link to libicucore (such as apps that utilize RegexKitLite), what is the best way to get regular expressions with capture group functionality to work from within an iPhone app? Should one statically compile ICU or PCRE (perhaps using the RegexKit PCRE wrapper)? ...

IPhone 3, iPhone 4, and iPad orientation handling

I have a view with a tableView and a mapView. In portrait mode, I want the mapView to occupy the top 60% of the screen, and the table view, the bottom 40%. In landscape, I want the mapView to occupy 45% of the screen on the right, and the tableView 55% on the left. Thus, I thought that something like this ought to work: -(void)wi...