ios4

CPSchedulePowerUpAtDate on iOS iPhone SDK 4.0?

Hi! what's the equivalent of CPSchedulePowerUpAtDate on the iOS 4.0? In iPhone OS 3.1.3 I could use it. I'm getting this error: dyld: lazy symbol binding failed: Symbol not found: _CPSchedulePowerUpAtDate Referenced from: /Applications/AppABC.app/AppABC Expected in: /System/Library/PrivateFrameworks/AppSupport.framework/App...

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...

iPhone SDK4.0 and xcode 3.2.3 issue

My app was building and running well in xcode 3.2.2 with iPhone SDK 3.1.3. Now, I upgraded the SDK to 4.0 with xcode 3.2.3 and tried running the app. All I could see there after in the iPhone Simulator 4 is the opening splash screen (Default.png) followed by a BLANK BLACK screen. This is driving me nuts. No change in code yet, the app fa...

nstimer and new iOS4, confused :(

Hi I'm very concerned about multitasking, being the lazy developer who is not very happy to update apps. Let's say I have a NSTimer, which, after a play button is pressed, every second calls a method, which changes the label of minutes and seconds of an audio file (which obviously is playing after the play button is pressed). Until th...

iPhone Single Sign On

Does anyone have a link to information regarding integrated, single-sign-on solutions for web apps for the iPhone/iPad and using one of the new VPN clients available in iOS 4? With a typical intranet application I develop using ASP.NET for consumption with Firefox or IE, we use NTLM/Kerberos authentication, and the user's credentials ar...

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...

Dismissing UIAlertViews when entering background state

Apple recommends dismissing any UIAlertViews/UIActionSheets when entering background state in iOS 4. This is to avoid any confusion on the user's part when he relaunches the application later. I wonder how I could elegantly dismiss all UIAlertViews at once, without retaining a reference to it everytime I set one up... Any idea ? ...

OS4 - window addSubview

Hi, I have an app that works fine in OS 3.*... However, in OS 4, this line of code doesn't seem to work. [window addSubview:[mainViewController view]]; Is there a different way to add a view to window in OS 4? Or is it even the wrong way to add a view even on OS 3.*? Thanks, Tee ...

Deployed to iOS4, localization stopped working

Since upgrading 'everything' today to deploy to OS4 devices, it no longer recognizes localized XIBs and plists. (It=neither iPhone simulator or iPhone.) As in, before OS4, switching language caused the correct localized files to be loaded, but not so now. Does something need to be 'recreated', 'nudged', or renamed? It has worked on simul...

How to use TV-Out now multiple UIScreens is supported in iOS 4?

Hi, I just did a quick test with UIScreen's +screens method, to see if the TV Out would also be seen as a UIScreen. Unfortunately, +screens returns only one screen (that of the iPhone itself). So how to display stuff on the TV-Out? Thanks. M ...

"Leaks" Instrument Not Working after XCode Update

I recently updated to the newest Xcode (3.2.3 w/ 4.0 SDK) and whenever I run ANY project using the Leaks instrument to analyze it, I get the error "Failure while acquiring malloc pointers (LeakAgent32)". This happens with any and all iPhone 4.0 applications and iPad 3.2 applications. I'm including an image with the error message displaye...

How do I launch an iOS app upon startup?

Hello All, I am working on a project where the iPad will be used for a specific purpose, and only run one app. When the device starts up, I want my app to run, and I want to override the home button so that it does not quit the app (like the iPhone/ iPod demos in the store). I have seen bits and pieces of this functionality, but am un...

What to do to make the app "qualified on iOS 4"?

I have not had much time to read through all the documentation for the 1500 more features included in iOS4, so right now I have 2 questions: If the app is just a usual utility application, what to do to make it "qualified on iOS 4"? If the app uses a timer to refresh all the items on the screen every one minute (requires redrawing of...

How to code a Shart/Graph Control in iOS?

I'm looking for a tutorial that shows me how I can create a custom Control for iOS, that draws Graphs. For example, something like in the Stocks App in iOS. Yes, there are many Chart Libraries out there but I find them really complex to learn the code and I just want to learn how I create such a graph myself in Code and how to create a C...

Adding a button in UITabBar to trigger a popover...

Hi! First post :) I am building an iPad app which basically has a UITabController which controls and displays 2 UIViewControllers that I set via: [tabBarController setViewControllers: [NSArray arrayWithObjects:browserController, videoController, nil]]; I would like to add a 3rd button to the UITabBar that presents a Popover when ...

CGRectMake - App crashes after install from xcode doesn' crash when re-launched on device

I'm building an app to iOS 4.0 and it crashes upon launching when xcode installs it. It crashes when loading my root view controller. It crashes at: - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor blackColor]; UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom]; When I step th...

App doesn't get fully launched with Instruments (Allocations) on the device

Instruments launches my app on the device and listens to the allocations. (In "Allocations" mode) It launches extremely slow. Then the app quits after about 35 seconds. On the simulator Instruments runs fine. Is there a solution to this? Is iOS killing my app? How am I supposed to debug this if Instruments increases launch time that much...

iOS: Audio Unit RemoteIO AudioBuffer manipulation (i.e. sound effects from microphone)

I've been playing around with Apple's aurioTouch demo which is sample code for their Audio Unit tutorial. This application allows simultaneous input/output from the mic. to speaker. It also renders a stereograph of the inputted sound from the mic. At a really high-level of this low-level process, the sample code defines an AudioCompone...

setFetchLimit and sectionNameKeyPath on iPhone OS4 (XCode 3.2.3) cause crash

Previously, on iPhone OS 3.2 with XCode 3.2.2 this used to work fine. I have created a small test to prove it. An NSManagedObject with 2 attributes, "group" and "vaue". Both strings. When setting up an NSFetchedResultsController to be used in the TableViewController, I set up the setFetchLimit on the request and I set the sectionNameK...

Multi-tasking with AVAudioPlayer

I have an audio app using AVAudioPlayer build for iPhone 3.x, now I would like to harness the multi-tasking capability in iOS 4 such that it can play music at the background. I tried to search for sample code but no luck. Can anyone help showing me how to enable AVAudioPlayer for background playing in iOS 4? thanks. ...