iphone

iphone email attachment and application handleOpenURL

Hello, I want to send/receive attachments with Mail iPhone, and pass those attachments to my App. If I send a normal link like: myApp://someurlehere/withOneParam my apps open and the event handleOpenURL fires. But I don't know how to change the name of the attachment to go like this way: [pickerMail addAttachmentData:imageData mim...

How do I create and apply the image skew transform that I have calculated?

Hi, I already asked this question and Kenny gave me a good answer (many thanks to him), but I still in confusion about the final realization. So, the question is - how to get access to the matrix of the certain pixel in the image. I translated Kenny's sample to the Objective-C: - (NSArray *) compute_transform_matrix:(float)X Y:...

Creating a Form and sending field's data as XML over SSL

Im researching the best plan of attack for creating a form that gathers information from the user and sends this dates to a server. I thought I would run my thinking past you all and get some feed back. To create the actual form I plan on using a table view and navigation controller much like the from used to create a new contact in the...

Using MPMusicPlayerController, setting musicPlayer.currentPlaybackTime to seek but takes second to take effect.

I have a UISlider acting as the scrubber. As the thumb is dragged I execute the following: - (void) _seekTo:(double)playbackTime { mPlayer.currentPlaybackTime = playbackTime; } That works fine, music seeks forward. Upon releasing the thumb, I restart the NSTimer to send time updates to keep the UISlider in synch. Problem is, u...

how to do long view in interface bulider?

Hi, i want to develop 320 * 800 view .in that view lot of button,textviews are there. but i know how to do it dynamically with scrollview.but any tutorial to do it through Interface Builder? ...

Is it possible to read the 'current project version' in the settings of an iPhone app

In my app I am using the agvtool to update the build number. I would now like to have the version of my app that appears in the settings to display this number and have it update automatically. I have seen a few apps work around this by writing a script to ready the value and populate the value then in the root.plist. I was wondering i...

Change iPhone UISlider bar image.

Hi everyone! My first question on stackoverflow! I'm using a UISlider in my app but I'd like to use a custom "look-and-feel" for it. I have changed the thumb to my own image but is there a way to change the bar also? I have a bar image I would like to use but can't see how to do this. I have found how to change the max and min image...

Looking for a formal specification for .pbxproj files

I need to read / write Xcode project definition files (myproject.xcodeproj/project.pbxproj) - is there any formal specification of the file format which I can use to create a parser? ...

Unable to save correct Date using CoreData

I created a CoreData application using the Cocoa Touch Template. I modified the included .xcdatamodel file to have an attribute called 'Date' with datatype of 'Date' and other string attributes. I use following codes to save data for the 'Date' field: NSDateFormatter *dateFormatter=[[[NSDateFormatter alloc] init] autorelease] ; [dateFo...

AudioStreamer class problem with 32 kbps stream

I'm building an app using Matt Gallagher's AudioStreamer class. It works just fine for 64 and 128 kbps streams but it keeps failing for 32 kbps stream. Content type is audio/aacp. Thanks for any tips that can bring me back on track. ...

Is it possible to write i file to the computers file system from the iPhone device?

I need to save an camera image from my application to the desktop so i can preview it. is it possible? The images that comes with the simulator seems to be too small. ...

Database connectivity within an iPhone application.

Hello, I was wondering if there were any good sources or documents that could explain to me how I can cannot to a PostgreSQL database from within my iPhone application. Also, if they could go beyond just connecting, and explain how to use PL/SQL and Object Persistence within the Objective C iPhone SDK framework as well, that would be a...

Drawing custom UITableCells with the correct data

I've got a UITableView with custom tablecells. First I had a version which implemented a separate NIB file to create the custom cell view, but this makes scrolling awfully slow. The official answer is to do your own drawing, so I implemented a drawing variant (ABTableViewCell). Everything is working now, except for the drawing of the ce...

Get NSString/NSData object from hardcoded bytes saved as NSString object in webservice response

Hey all, I am working with the iPhone SDK and I have to process a webservice response I receive from an external service. The response data consists of an XML string that was UTF8-encoded to a byte array. This byte array is converted to string This string is put into a XML wrapper element The wrapper is returned via an HTTP response ...

IPhone custom UITableViewCell Reloading

Hi, currently I'm struggling with this problem: I got a UITableViewController that displays a tableView with different custom cells. One custom cell displays a number (by a label). If you click on this cell, the navigationController moves to a UIPicker where the user can select the number to be displayes. If the user moves back, the ce...

sendSubviewToBack question:where to send

Hello everyone I have a UIView and there are 5 subViews on it with index 0,1,2,3,4,5 I hope to know for the subview with index 5: subView5 the code [self.subView5 sendSubviewToBack] send the subview to 4 or 0? Thanks interdev ...

Iphone App Crashes - But sometime works(50%-50%)

Hi All I am using following code for showing a next view(tableview) in Iphone app. It sometime works and some time app crashes without any exception log NSLog(@"Ok"); is log everytime 50% attempts application crashes -(IBAction)statusInitiationButAction:(id)sender{ @try { NSArray *tempArrIniId = [eventInitiationArray v...

iPhone: How to Write an Image to Disk in the App Directories

I am working on an iPhone project in which I need save camera images to disk and file but the code below fails: (**** -(void)imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]; imageView.image = [info objectForKey:@"UIImagePicker...

cross-platform development for mobile devices

What language/framework is best worth learning for mobile application development? My specific situation is that I'm very familiar with Java and C++ (I especially love Qt), but have limited experience with other languages. Some options I'm considering: 1) Learn Objective-C and all the iPhone-specific tools I do have access to a mac. Th...

IPhone Keychain API Examples

Could anyone supply me with very basic code examples for adding/reading items to/from an iPhone keychain? I want no other application than the one that added the item is allowed to access it. Apple's GenericKeychain example is kind of advanced so don't bring that up, please. ...