ios4

Does MongoDB work on iOS?

The title pretty much says it all: Has MongoDB ever been compiled to work on iOS devices? I know the terms of the App Store do not allow an application to launch a subprocess, so the DBDirectClient class would have to be used to access the data files in-process. Any thoughts? ...

App Delegate giving warning: 'id <UIApplicationDelegate>' does not conform to the 'UIAlertViewDelegate' protocol

Hello everyone, I'm currently using a UIAlertView at startup in my app with the UIAlertViewDelegate. It all works fine. The only problem is, I get the warning "type 'id ' does not conform to the 'UIAlertViewDelegate' protocol" every time I reference the App Delegate, giving me about 32 warnings. Can anyone shed some light on why I'm g...

iOS SDK broken ever after reinstall UIKit and Foundation frameworks not found.

For the pch file I get these errors: /Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:6:34: error: Foundation/Foundation.h: No such file or directory /Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:7:24: error: UIKit/UIKit.h: No such file or directory Here's the fi...

Audioservices volume issue on 4th gen. iPod touch

Hi IPhone Developers, I am currently developing a game for iPhone/iPod touch. For short sounds I am using the AudioServicesPlaySystemSound function. I know that I can't control the volume of these sounds programmatically, but on my iPod touch 3rd gen these sounds respect the overall sound volume. On my new iPod touch 4th gen, these soun...

willAnimateRotationToInterfaceOrientation not being called in one subview while another is visible and rotated.

Hello all. I have 3 subviews in a UITabBarController. The first tab's view has objects which are manually moved when willAnimateRotationToInterfaceOrientation is called. However, if another tab's view is visible on rotate, willAnimateRotationToInterfaceOrientation is never called, and the items on the first tab's view are not in the rig...

Integrating iPad/iPhone App with Rails Application

Hi all, I'm a student working on a project where a need to integrate my iPad (or iPhone) application with a Rails Web App, populating the database from the iOS side and displaying the contents in the web app. I've found ObjectiveResource, but I've had difficulty getting it up and running (went through the getting started, and had the si...

How to know if we are on an iPad or on an iPhone.

Possible Duplicate: API to determine whether running on iPhone or iPad Hi, I'd like to test the device in my application, to know wether I'm on a iPad device or on an Iphone. is there a easy way to do that ? thank's au lot David ...

Differences in behavior of AVAudioRecorder in iOS 4.1 and iOS3.1.3

hello all, I want to play an audio when someone speaks in the iPhone's mic. This code works perfectly in iPhone 2G(OS 3.1.3), but when it is tested in iPhone 4, it doesnt work. I checked for API and method differences, but could not find any. - (void)viewDidLoad { NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/Aud...

Chaining Height of UIPiekcer Selection View

Is it possible to change the height of UIPicker "Selection View"? ...

ABPersonViewController drawn under the navgation bar

The context: I am working on an app that maintains a list of contacts along with their record IDs for it's own reference. When the user needs to change the number associated with a specific contact within the app, I am trying to display the ABPersonViewController so the user can choose the new number from the contact in AB. The probl...

sendSubviewToBack hides UIImageView

I have an UIImageView and a few buttons defined in interface builder. I want to display an image with the buttons on top of it. I add an image to the UIImageView programatically but it covers up the buttons. I tried using sendSubviewToBack and the image disappeared completely. Here's my code UIImageView *imageView = [[UIImageView alloc]...

Why do my UIButtons look transparent in iOS4 when they looked fine in iOS3.1.x?

I have an app under development that worked fine under iOS 3.1.x. I was at a good break point, so I decided to upgrade my dev environment to XCode 3.2.4 + iOS4.1. My app has a number of UIButtons that I made colored using the "stretch a colored image as background" technique described elsewhere on StackOverflow: UIImage *myImage = [UII...

How do I add an entry to a plist?

I want to add a dictionary pair into an existing plist. I want to add a Boolean value. So how do I add it to an existing plist? ...

NSDate formatter Problem its getting null while converting NSString to NSDate

hi to all I am Struggling to convert NSString to NSDate with the Help of formatter but its going to be null Can any one help please here is my code... NSString *dateString=[NSString stringWithFormat:@"10/26/2010/09:56:56 PM"]; NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease]; [dateFormat setDateFormat:@"mm/d...

iOS Using MPMoviePlayerViewController in Fullscreen (iPad)

I have a single view app with 5 buttons and when one of the buttons is pressed, the player slides up over the original view and begins playing the video in fullscreen (as it should). All works great with the exception of when pressing the Fullscreen/Minimize icon (the two diagonal arrows pointing to each other next to the play back con...

In iOS 4.0+, can you read data inside the e-mails through a non e-mail app?

I am attempting to do an app for a class where the application views an e-mail, reads inside of it for a specified codework/phrase and if it sees that, it starts playing an alert tone and screen flashing. The application is for locating a lost iPod via e-mail. I know there are applications on the droid that allow you to do this in SMS an...

iPhone iOS4: API for AVRCP (ff/rewind commands on Bluetooth headsets)

Hi, I know that AVRCP abilities were added to iOS 4.1 (in iPod application now you can forward and rewind songs by using hardware buttons on supporting headsets). I am trying to find any API for using these abilities in a music application that I work on. The requirement is to catch play/stop, forward and rewind buttons events from th...

How to Programatically access ipad "Video" folder

Hello, I am using the iPad, and I have videos/movies stored in the "Videos" folder on the iPad. Note: I'm not try to access videos saved in the Photos Section, I can already access videos saved in here by using; UIImagePickerController* picker = [[UIImagePickerController alloc] init]; picker.delegate = self; [picker setMediaTypes:[...

how to track which purchase associated with a partiular game center user

I am looking for advice on how to associate a purchase with a particular user, (for example, a game center user) basically the user who makes the purchase. The purchase is a consumable item or subscription, so it can't be restored. My overall design using server product delivery mode is largely working, but it doesn't work with some edg...

iPhone 4, Push Notifications At Night Time, Any Way to Stop?

Hi, I'm wanting to know if there's a way to stop push notifications, or at least stop their sound during nighttime? I don't want to silence the phone, because I need the alarm to sound in the morning. It'd be nice if I could specify that push notifications should only come through between certain hours, or be quiet during the night... ...