iphone

Iphone MPMoviePlayerController "the server is not correctly configured" ?

On the iphone, when trying to play a broken url using MPMoviePlayerController the user gets an alertbox with the message "the server is not correctly configured". Is there any way to change this to something more user-friendly? Alternatively, is there any way to get an error status from the player instead of getting this message? Thank...

iphone development.

hi.i am sapna.and we have to develop an application in an iphone having features:- Identifies a unique user and captures profile. Admin module / configuration module to assist user define the data points and their bound values. Support of upto 250 data points to monitor, and monitor upto 50 on the client side Provide tabbed interface w...

Property Lists - Reading and Writing (iPhone)

Alright, here goes. I'm making a very basic app, and I want the user to be able to store information between sessions. Basically, for them to save their game. There are only 7 Variables I need to save, all of them in are Integers. This is the code I have to save the game. - (NSString *)dataFilePath { NSArray *paths = NSSearchPathFo...

ASIHttpRequest NetworkQueue problem

Hey Guys, I want to use the ASIHttprequest library to download some files, I am testing with their code and it is not working while the same code works on their sample this is my code to call their view QueueViewController *queueViewController = [[QueueViewController alloc] initWithNibName:@"Queue" bundle:nil]; [self.vie...

NSURL not instantiating properly

Hi, I am new to IPhone developing. I have got very strange issue with NSURL which is driving me crazy. I want to instantiate NSURL object to use it in loading image. But instantiation never happens in proper way. It always says my url in invalid. Basically I use code like below: NSString *str = @"http://google.com"; NSURL *url = [NSUR...

Load UITableView inside a UIView

Do I need a UITableViewController in addition to my UIViewController if I want to load a UITableView as a subview along with several other views at one time? ...

sizeWithFont memory leak in iphone

I have this code: [[data objectForKey:[keys objectAtIndex:0]] sizeWithFont:[UIFont systemFontOfSize:12] constrainedToSize:CGSizeMake(276.0, 1000.0) lineBreakMode:UILineBreakModeTailTruncation]; data is a NSDictionary. It is said this code has 16 bytes leak, but I cant find it. Help ...

Moving the position of the back item in a UINavigationBar iPhone

Trying to move the position of the back item on the UINavigationBar by getting a handle to the backbutton however I only seem to be able to make it disappear rather than do anything with it I have the following in viewDidLoad self.navigationItem.leftBarButtonItem.title =@"Testing"; self.navigationItem.backBarButtonItem.title= @"1234";...

Accessing Method from other Classes Objective-C

Looked for an answer for this question, but I haven't found a suitable one yet. I'm hoping you guys (and gals) can help me out! (This is for an iPhone app) Alright, I have a Mutliview application. Each view has it's own class, and everything is happy. However, the different classes sometimes call the same method. Up until now, I ha...

Help getting dataSource working on OpenFlow

I need help getting dataSource in OpenFlow. I I want to provide CoverFlow functionality whenever the phone is turned horizontally. I'm using Alex Fajkowski's awesome code OpenFlow ( http://fajkowski.com/blog/2009/08/02/openflow-a-coverflow-api-replacement-for-the-iphone/ ) but the example provided is very different than what I need. I...

iPhone app - some custom UITableViewCell questions

Hi, At the moment, I have a settings view in my iPhone app built with Interface builder, it consists of a background image, some text fields, labels and buttons. Because this looks bad, I want to convert the settings view to an UITableView with custom UITableViewCells. I already tried adding some cells into my settings view's XIB and r...

iPhone - Read password encrypted sqlite database

I can open a regular sqlite database on iPhone with sqlite3_open([filename UTF8String], &database); But how do I open a password encrypted database? ...

MFMailComposeViewController attachment file size limit

I'm using MFMailComposeViewController to send a file. Everything works fine with files under 15mb. Anything over, and the file simply doesn't get attached to the MFMailComposeViewController view. It's not that the email server isn't accepting, its that it never gets attached in the first place. Does anyone have any ideas if there's a w...

Animating the filling of a mask

Hi, I have taken the popular colorizeImage procedure and modified it to display incremental section fills for an image using a mask. Now I am trying to give a look of the image filling up gradually, I have tried to use Basic Animation to do this but I get a fade between the two images, and if I try and add it to an animationgroup and a...

How to download xcode - iphone os entire reference library?

Open X code. Go to help menu / or press command + shift + / Select documentation option. Now a help window will be opened. In this help window, on the left side there are many options like - iphone os 2.1 subscribe, iphone os 2.2 subscribe, iphone os 3.0 subscribe, xcode reference subscribe ( something look like this ) If we press iph...

composite colors : CALayer and blend mode on iPhone

I'm trying to use core image on the iphone. I'm able to composite my colors using quartz to draw an uiview, but i want to separate each component into CALayer (UIview consume more resources). So i have a white mask i want to use to filter a background bitmap, and i want to try diffrent blending mode. UNfortunately, the layers are only "...

Cocoa-Touch: How to do layouting.

I have a view (UIScrollView), which loads some data, and displays various things from it in various subviews. So I have approx 10 subviews (UIImageView, UILabel) and I need to place them programatically considering their unpredictable contents (i.e. different height/width for the UILabels depending on the text property). From what I've ...

Problem installing ad hoc-provisioned app built with SDK 3.1.2 on device running iPhone OS 3.0

I'm trying to install an ad hoc-provisioned iPhone app compiled under the 3.1.2 SDK on a device running iPhone OS 3.0 via iTunes. I'm getting a message "The application was not installed because it requires a newer version of iPhone OS." The build settings for the project are "iPhone Device 3.0 (Base SDK)" and "Distribution." The app suc...

Is it OK to mix AudioServicesPlaySystemSound and AVAudioPlayer?

We have a game that is very close to being released, but we have one extremely annoying problem. One on of our Beta testers phones, he can't hear any of the in game sound effects. He can, however, hear the background music and the title screen music just fine. The background and title music are both being played via AVAudioPlayer (t...

I am looking for UITextFieldDelegate sample code.

I am looking for UITextFieldDelegate sample code. Please teach when knowing. ...