iphone-sdk-3.0

Mailing SQLLite and pLists using SDK3.x's Mail Composer

Newbie questions (potentially) I wish to use the Mail Composer class to send both a property list (which I believe is ASCII XML) and a small SQLlite database from my iPhone to my email account. The method I'm using is [mailComposerObject addAttachmentData:(NSData *)attachment mimeType:(NSString *)mimeType ...

iPhone interface orientation statement not working in OS 3.0?

I have the following code which evaluates to true and runs the code inside the braces I rotate to the right (or left) in OS 2.2.1. However the same line of code does not evaluate to true (or go into the braces) if compiled and run for OS 3.0... I say this because in the debugger (and the log) the lines inside the braces get skipped if ...

Iphone SDK - Multiple subviews and shouldAutorotateInterfaceOrientation

The iPhone Application Programming Guide shows an example labelled "Listing 2-1 Creating a window with views" (see below). This shows how to create and add two subviews to a window. I am using a similar pattern=. This works correctly, both windows get displayed. The problem I am having is to get it to recognize and do rotation. I hav...

iPhone sdk - owners name?

Is there a way in the iPhone sdk to get the name of the contact who own's the phone? I see that my app has been cracked, and I would like to update a release which checks to see if it a cracked version and then display the following: Hello (Persons name). I see you are using a cracked version of (Application Name). If you like this appl...

Load a row from NIB in UIPickerView viewForRow

I'd like to create a fairly complex row in my UIPicker. All of the examples I've seen create a view from scratch like so... - (UIView *) pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent: (NSInteger)component reusingView:(UIView *)view { CGRect cellFrame = CGRectMake(0.0, 0.0, 110.0, 32.0); UIView *new...

MPMusicPlayerController stops sending notifications

I have a MPMusicPlayerController playing the entire iPod library and I'm subscribed to the notifications when tracks change etc. This is all working correctly When the end of the playlist is reached, MPMusicPlayerController sends a change of state notification and stops. When I re-start the player, music begins to play again but MPMus...

Is code generated for 2.21 compatible with 3.0?

Hi, here is a good question: I have an application compiled for iPhone OS 2.21. When I run this on my iPhone 3G (updated to OS 3.0) the application runs fine. Is this a guarantee it will run on iPhone 3GS? If I take the same code and compile for 3.0, part of the code do not runs on my iPhone, specially a scroller that does not scrolls....

Multiple Fields Sqlite Index using Core Data

Is it possible to create sqlite index based on "multiple fields" using core data? In my present sqlite based schema, I have an index based on two fields, name and state. How do I create similar index using core data? ...

iPhone - combine two wav/caf files into one

Hi Is it possible to combine two wav files into one as if they've been played simultaneously? I need to do this programatically. The only way I found till now is to play both simultaneously and record the output using AVAudioRecorder. But this won't work if the user's using headphones. Can someone please point me to the right directio...

UIAlertView in Landscape mode

I have set my iPhone in the landscape mode but when I try to display the UIAlertView its come in the portrait mode. How it will display in landscape mode? ...

Reload application while is running OR close it good

Hi, in my app I create at the beginning a tab bar controller with 6 view controllers. One of them is to login in the application, then i have a login/logout button (Facebook sdk). I would like to know if is possible to do the next: 1) OR when I click in the logout button (because at this moment I'm logging in) "To close the entire appl...

iphone prevent autorotation but only when keyboard is showing.

Is there a way to prevent auto-rotation from a view controller when the keyboard is showing? I don't want to capture the notifications and handle all drawing by hand if possible. Edit:I found that the root view controller in the chain was preventing the shouldAutorotateToInterfaceOrientation: message from coming down the pipe. Once it ...

UIKeyboard with other Characters (Hebrew or Russian)

Is it possible to get an UIKeyboard with a specific characterset for different countries over the iPhone SDK? Thank you ...

How to Make the KeyBoard Disappear while using a UITextView in iPhone

Hi, I am using a UITextView and I am confused about making the keyboard to disappear. Do I need to use some kind of a notification to make it disappear. Thanks ...

video recording

how to access the video content in an iphone. Is there any possible to implement it using iphonne skd 3.0 ...

iPhone UIButton Multiple Clicks Problem

Hi...I have an UIButton, which logs the content that is present in a couple of UITextField's.But when I click on this UIButton thrice, the simulator hangs and the debugger is opened. Can someone tell me why is this happening. It happens only when there is content in UITextFields. ...

NSURLConnection Never finish.

Hi, i have the next code: NSURL *url = [NSURL URLWithString:@"http:...."]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [""soapMessage"" length]]; [theRequest addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"]; [theRequest addVa...

How can I show a tabbar when pushing a UIViewController onto the Navigation stack

So it is very easy to hide the tabbar when you push a view controller onto the navigation controller stack: uiViewController.hidesBottomBarWhenPushed = YES; works just peachy. Put let's say I want to push deeper into the stack and show it again? Setting laterUIViewController.hidesBottomBarWhenPushed = NO; on some later view con...

iPhone GPS (location) API link required

I am new to iPhone Application... I want to use GPS API in my iPhone Application, for getting current location of iPhone.. Can any one plz post some links for GPS API for iPhone ? Thanks.. ...

how to detect and program around shakes for the iphone

I'm trying to implement the shake "tutorial" on this page, but I think I'm missing something. I copied his accelerometer function into myAppViewController.m file and put some nslogs in there to see if it even gets into the function when I use the simulators "shake" function. Nothing shows up in the debug console. http://mithin.in/2009...