iphone

Problem with NSUserDefaults and deallocated Instance

Hi, I'm having a problem with NSUserDefaults. I've followed the steps in the books as closely as I can for my app, but still get the same problem. I am getting a *** -[NSUserDefaults integerForKey:]: message sent to deallocated instance 0x3b375a0 error when I try and load in the settings. Here is the code that I have, it is in the...

Animation or Video instead of Default.png (Iphone app)

hi, I saw in many application like Zara, Zara Home, D&G.. that instead of using the Default.png image for loading the application, they use a video instead. Did someone know how to do it? Did they manage to replace the Default image and put an animation instead or just load an animation in the ApplicationDidFinishLaunching Thanks, ...

XpathQuery to retrive particular data from html page in iphone.

I am new to iphone development.I want to retrieve a particular data from a HTML page (Data inside a particular tag like This is title).I have the link of the web page.How should i use xpathQuery to retrieve "This is title" inside the tags.Please help me out.Thanks. ...

UIWebview iPhone loading bundle resources

I'm trying to load images from the bundle to a uiwebview. the code i'm currently using is NSString *path = [[NSBundle mainBundle] bundlePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; [webView loadHTMLString:htmlString baseURL:baseURL]; when i open the view the application closes and opens safari and an error message pops with...

How to find undocumented iPhone API calls?

In the early days of the iPhone development apps are often kicked out of the AppStore for using undocumented API calls. I always asked myself how people found out about these methods and what they do. I know a little about Objective-C and I know you can send any message to any object or you can even check if an object will answer to a me...

How to parse a HTML file at a URL?

I am new to iphone development.I am able to parse a Xml file at a URL and retrieve it contents from a particular nodes. For Parsing at url NSString * path = @"xxxxxxxxxxxxxxxxxxxxxx"; [self parseXMLFileAtURL:path]; For retrieving the data i use NSXMLParser .How can i achieve the same thing if i have HTML file at my URL(Source ...

Two nib overlapped: how to interact?

Hy guys, i've a problem. I've two nibs, the one partially overlapped to other. Into the first nib there's a full interactive area (it's the big red button). Into the second there are two buttons (a visible one "button 2" and a hidden "button 3" that slides up when you press "button 2"). How can i click the "button 1" when i am into the...

UIAlertView close the App

Hello Users, in my project my app first tries to connect to the internet, but now i have to check if there is an connection available! so i made an if, else within an UIAlertView in the else part! but how can i close the whole app on a click on the following button? UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Keine Inter...

Three20 iPhone - Sending XML-RPC Request instead of HTTP?

I am new to Three20 and have been trying to develop an iPhone app with Three20 for the past week. This app has to access to a xmlrpc server. I know it is possible to receive responses in other formats like JSON. But for requests, instead of the provided HTTP class TTURLRequest, is it possible to send request by XML-RPC? ...

Capture Touch Event on UITableViewCell and after enter didSelectRowAdTindePath method

Hi I want to personalize my UITableView changing background when user tap on a specific cell. I've a dedicated ViewController for each cell and if I implement touchesBegan method in this viewController i can change my cell background without any problem. The problem is that the method "didSelectRowAtIndexPath" of the UITableView is no l...

Difference between 2 NSDates, excluding Weekends?

For those familiar with Excel, I'm trying to use a similiar NETWORKDAYS function within Cocoa. Can anyone help with the type of info I'll need to construct an NSDate catagory that can give me only the working days betweek two dates? many thanks Nik ...

UIViewController with custom UIView

Is there a way to make e.g. UIViewController use a custom UIVIew class? ...

How to give a input date format in iphone

Hi, i am new to iphone development. In my input date format is "2010-03-05T18:20:40Z", and i donno to how to give a input format of my code.So i have mentioned in my code (?). input date format = "2010-03-05T18:20:40Z" Here my code is: NSString *indate = @"2010-03-05T18:20:40Z"; NSDateFormatter *inputFormatter = [[NSDateFormatter allo...

iPhone development - How to override microphone with contents of an audio file

Hey guys, Does anyone knows how to override the iPhone microphone with the content of an audio file? Imagine a scenario where you are in a call and you wants to play some short audio to the other person hear it. So, it would be necessary put the microphone (hardware) on hold, and write the content of the audio file into the mic buffer...

Why does a pin placed at the same latitude and longitude in MKMapView differ from one in Google Maps?

I drop a pin in an MKMapView with longitude and latitude. When I place same longitude and latitude on google map the pin on both are slightly different. ...

popToViewController raises "Assertion failure" message, how to solve it?

In CoreData, I have the data graph with some entities, and each object is populated in a view controller, at a defined screen, I want to pop out some (>1) objects to return to a define screen. I tried to pop the view controllers out of the navigation stack with these lines of code: ObjectA *objectA = objectD.objectC.objectA; NSLog(@"ob...

What is actually changing when we zoom out a subView inside a UIScrollView?

I have a subview inside a uiscrollview. Then I zoom it out. So it becomes bigger and allows me to scroll through it. So what is actually changing here? ContentSize of UIScrollView? ...

selecting next row of table view by shaking the iPhone.

Hello every one, I want to change the row selection by shaking my iphone. i.e. as soon as I shake my iphone, the next row should be selected of tableview. And according to that another operation should be perform. can any one tell??? ...

Problem in playing Streaming audio in iphone

Hi I am being able to stream the audio via http request with AudioFileStream.But it has been seen that it can only plays urls like "http://202.6.74.107:8060/triplej.mp3" means with an .mp3 extension and unable to play any audio without any extension like the url "http://89.238.252.138:7000" or "http://www.tv-radio.com/station/le_mouv_mp...

iPhone: How to Maintain Original Image Size Thoughout Image Edits

hi, I am developing an iPhone app that resizes and merges images. I want to select two photos of size 1600x1200 from photo library and then merge both into a single image and save that new image back to the photo library. However, I can't get the right size for the merged image. I take two image views of frame 320x480 and set the v...