iphone-sdk-3.0

Objective-C Delegates: Have another class I call that parses XML. Need to know when its done externally

Hi guys, I have a class that calls another class to parse (NSXMLParse) from a URL. Now I would like for the class calling this one to know when it has finished, so that I can populate the UI. I am guessing a delegate would be the way to go but ive never worked with one and would need some guidance as to how this would be wired. Thanks ...

Objective-C: CDATA editing or converting

Hi guys, obj-c question. I have text that I parse that contains CDDATA (html amp chars etc). Now, is there a way to render it on the UI with some control, locally, and secondly, is there a clean way of editing it (converting it perhaps from cddata to text in a textarea)? ...

iPhone headphone click detection

I've tried looking through the documentation, but I can't seem to find (or recognize) what I'm looking for. The iPhone and iPod Touch have a momentary switch on the headphones, which I believe is called the "remote" (please correct me if I'm wrong). It is used to start/stop/forward/back for music or to pickup/end a phone call. I'd like...

Festvox Voices. Where can I find them.

I am building a new app and I want to use Festvox voices. Anyone know where I can find them? http://www.tomsoft.co.uk/iphone/flite.htm ...

how to program drawing from a deck of card where value and suit is unimportant?

Hi, i know that there are many ways to program a deck of poker cards where value is important after searching on the net. My problem is that my "deck" of cards is a simple array with value as "card name" (example 1 = Ace of Spades) Do i randomize my current Array with NSMutableArray and then remove index 0 everytime the card is being "...

iPhone; Continuously Get Video from Camera

Hi, First of all I have to admit that I haven't upgraded to SDK 3.1 yet. AFAIK, there is possibility to record video using SDK, but again popping up camera and allowing user to start/stop recording and save the recorded Video. First, is this correct? Now, my question; Is it possible to get video stream from Iphone? I just want to trigg...

Button to sound in Interface Builder?

I'm working with the iPhone 3.0 SDK (bit of a novice really), and I have set up an Interface Builder View with several UIButtons in it. I also have several sound files in the Xcode project. I have searched for this and none of the solutions seem to work for me. Does anyone know how to make a short sound play once upon pressing a button?...

how to change the background color of the keyboard programmatically in iphone sdk?

i want to change the background color of the keyboard when we are entering text in textfield or textview. the default color is blue...as background.... can i change the color to black???? ...

Can't get UILabel text shadow to be any color but gray... help!

So I'm setting UILabel.shadowColor to a non-gray color, but the shadow always appears as opaque 50% gray (or so). For example, I tried setting the shadow to red and I still see gray. Has anyone else seen this? (This is the UILabel inside a custom nav bar back button) .n ...

Objective-C: CoreData Getting related Entity in one-to-many

Hi guys, IN a bit of a pickle. I am implementing a CoreData solution and I have two entities, Site and Post. Now Site has many Posts as Post belongs to one Site, as reflected in the model diagram. In my entity code I have : Site.h @property (nonatomic, retain) NSString * name; @property (nonatomic, retain) NSString * url; @property (...

Objective-C: Getting UIActivity indicators for images in UITableView

Hi guys, I was wondering if anyone knew the best way of getting in a UITableView, where we have images on the left hand side, for the images to appear with UIActivity indicator gradually rather than not being there and appearing all of a sudden. Ive seen that on a few apps and wanted to know how to do it. ...

how to know whether dealloc is getting called or not in iphone sdk?

hi.. i am using UIviewcontroller subclasses. In my main view i have 3 buttons, each button will load a different nib. and each new nib is having one back button to come back to main view. when i click one the back button of any view to move to the main view the dealloc of that view is not getting called? i didnt understood this. can anyo...

MFmailcomposer works fine in iphone but not in simulator!!

MFMailcomposer works fine in iphone but when run in simulator mails are not sent. and when sent from iphone if image is attached in mail it displays broken image. image is not clear. i am not getting what is the problem. right now i dont have device and from simulator its not sending mails. ...

Refreshing XML data and updating a UITableView

I'm developing an iPhone application which uses a TableView to display XML data. The XML data comes from an external resource and is parsed and put into an object for use as a table dataSource. The application uses a UITabBar and multiple ViewControllers all programmatically created and using the same dataSource. Everything is fine and ...

is it necessary to give distance filter for acquiring best location?

I am using location manager in my application and i'm getting inaccurate location.I'm using below code for getting location locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyBest; and in didupdatetolocation method i'm using this code. LatitudeData = [[NSString alloc] initWithFormat:@"%f",newLocatio...

iphone application..

How can I create a registration form on Iphone so that if I submit the form the data must be store on my database which is on my webserver? ...

Using MFMailComposeViewController

Im using the MFMailComposeViewController to send mail from within an application. I have added the code from the Apple example to a UITableViewController, and all works as expected when I trigger the modalViewController from a UIToolBarButton. The problem comes when I put a UIActionSheet between the UIToolBarButton and the MFMailComposeV...

in interface builder what is accessibility menu for?

with the newer sdk we can see a menu named accessibility in identity inspector.What does it do and how we can use it in application? ...

strange MPMoviePlayer problem

I am using mpmovieplayer in my application.I have a button for playing movie witch has an image of play.But when mpmovieplayer plays movie i can see that button on movie player's overlying controlls like when i pause movie i see my play button instead of movie player's default button.Also i have customized navigation bar and i can see th...

how to open compass app from native iphone app?

how can we open compass app from our native iphone application? also i am using mapkit and i want to show the direction heading from user location to another location in maps application how can we achieve this? ...