iphone-sdk-4.0

iOS 4.0 Fast app switching.

Okay, I'm trying to implement fast switching on my app, and if I don't have to execute any background code / save any user data, do I really even need to do anything ? Or do I just upgd to iPhone SDK 4.0, click compile, and deploy? Is there any way to simulate an out of memory exception, make the OS purge the application to test how it'...

Anybody having problems with sound playing on iPhone OS 4.0?

I just installed an app I'm building on my iPhone 4, and even though the sounds I'm using play in the simulator, they don't play on the phone. Just using an AVAudioPlayer object for all the sounds that need to play when a user interacts with the app. ...

Is there a graphical error in iPhone SDK 4 Cocoa Touch toolbars?

Add a toolbar to a view in Interface Builder, and then add buttons to the toolbar. Image buttons on a toolbar glow/highlight when they are tapped, to give the user a response that they touched it. Ever since iPhone SDK 4 however, when tapping buttons in a toolbar, the glow is the correct size, but with every tap the glow gets progressi...

app crashes after default screen loads. but only in 4.0

I am a newbie working on my first app. I have successfully built an app that needs a few minor changes in 3.1.3. Can I upload the app to Apple in this build or do I need to port it over to 4.0. Because when I port it over to the 4 sdk, it crashes right after launch. It's a simple mad libs type of app with animations. I have been pouring ...

Bug in AVAudioPlayer class?

I'll keep it short and sweet - I'm building an application just for practice before I buy myself the iPhone Developer Program. I'm experimenting with the AVFoundation.framework and I keep running into a bug which will only let me play the first sound I initialize in my code. Do you think any of you could help me out? Thanks in advance!!...

Cancel UILocalNotification

Hello guys! 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 = [[UILocalNotification alloc] init]; if (localNotif == nil) return; localNotif.fireDate = i...

iPhone Radio program with VU Meter

Fellow coders, I wrote an iPhone app that plays wma stream, using libmms and ffmpeg open source libraries. The app has already been approved by Apple and is available for download, free of charge. Now I'd like to have a VU meter on my app. I'm using the avTouch code sample, downloaded from Apple (https://developer.apple.com/iphone/lib...

Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs

I created this community wiki to bind together a number of other Q/A's I've seen here on SO. If you're here, you've probably installed the final version of Xcode 3.2.3 with iPhone SDK 4 (download link, reg reqd), and then encountered one or both of these problems: In your previously working xCode iPhone project, you get "Base SDK Missi...

CFPreferencesCopyAppValue not working under iOS 4

I am storing a username in CFPreferencesCopyAppValue. Under iOS 3.1.3 it works as expected but in iOS4 it stores it while the App is open but as soon as its closed (using the multitasking close ability) the variable isn't stored, ie on relaunch of the App its null. I have a feeling it might be an issue with the multitasking as the App i...

iAd left white blank screen after closed

I got a problem to integrate iAd in my iPhone apps -- the banner ad is fine when it expends (see http://www.clingmarks.com/iAd1.png and http://www.clingmarks.com/iAd2.png), however, when I close it, it left a white blank screen (see http://www.clingmarks.com/iAd3.png). I couldn't figure out why. Here is how I integrate the ad: Because I...

"On duplicate key update" for core-data

Hi, I would like to know if there is some kind of similar functionality or way to preform an "on duplicate key update" function with core-data as there is with MySQL. What I want to do is to save an object to the database every time a user presses a button. But if the button is already pressed I want to update the row with some new val...

What is the point of @property and @synthesize?

I haven't been able to figure it out, and there are no websites which explain it clearly enough... what exactly are the purposes of @property and @synthesize? Thanks in advance! ...

Iphone4 crashes ipod app

I created a sample application for the iPod and it works well. I checked it lots of times on the iPod. I installed that application onto the iPhone4. It doesn't work - it crashed several times. I dont know why. I have the latest iphone sdk, 3.2. (I use sqlite3 to store and retrive data) ...

iOS4: Can't Programmatically Scroll to Bottom of UITextView

Before I was using this method.... //TextView is a UITextView [TextView scrollRangeToVisible:NSMakeRange([TextView length], 0)]; ...which would programmatically scroll to the end of the UITextView but it doesn't seem to be working in iOS 4.0. Is there a way to programmatically scroll to the end of a UITextView without changing edit...

How to change iPhone App name 100%!

Can't seem change the name of my iPhone app 100%. I followed multiple threads and performed the outlined methods below, but the old name keeps popping back up in Console. I'm concerned that on some deeper level the app's name has not really been changed 100%. My concern is with the fact that I've made a "Lite" version by starting wit...

Getting exposure values from camera on iPhone OS 4.0

Exposure values from camera can be acquired when you take picture (without saving it to SavedPhotos). A light meter application on iPhone does this, probably by using some private API. That application does it on iPhone 3GS only, so I guess it may be somehow related to EXIF data which is populated with this information when the image i...

How to create high-resolution iphone launch image?

As per the Apple iPhone Human Interface Guidelines I have created a Default.png image which is displayed while waiting for the application to load. I created the image using the xcode organizer 'capture screenshot' feature. I am now preparing my application for the iphone 4 high resolution screen and am wondering how to create the high...

Navigation Controller problem...

hi guys... I am working on an iPhone application. Application has a navigation bar at the top. I have two views say "root View" and "Child view" ..i need to replace navigation bar on the top in "Child View" With (320*20)px View (or custom tool bar) with a custom back button on the top left corner..please help me.. thx in Advance...regard...

Using PLCameraController class in iPhone OS 4.0

Has anybody used PLCameraController class in iPhone OS 4.0? Can you please share example how you are using it? Can you also share interface declaration for it? Thank you. ...

how to do multitasking application in ios 4.0

i am having application running on os3.0 i need to adopt this for ios4.0 wat are the major things i hav to take care... how can i do existing application compatable to multitasking? ...