iphone

How to check a Web Service for an updated version of a locally stored XML file on the iPhone/iPod Touch?

Hello, I'm currently working on an application that needs to check a web service for an updated version of a locally stored XML file. If there is an update the file must then be downloaded and saved to the iPhone. I'm not really sure what direction I need to head in. Currently I know that I can use NSURLConnection delegate methods to e...

UITabBarController Active Tab Masking Color?

Quick question, when you are implementing a UITabBarController and you are adding image icons to the tabs is there a way to override the blue active masking color, can you specify your own gradient or a custom image for the background grad? cheers Gary ...

I need a way to not rotate a subview when the parent view rotates

Hello, I have a situation where I have a view, and several subviews, and the view and all but one of its subviews are expected to rotate. The one subview that I don't want to rotate is a UIImageView and the image gets distorted when I rotate so I need it to simply not rotate when the rest of the views components rotate. Does anybody...

Memory Problem - Release whole ViewController ?

Hi, I'm using a TabBarController with a few Tabs and I have memory problems when switching through the tabs and the contents. Is there a way to release and dealloc everything when I go to another ViewController ? So when I am in Tab#1 with ViewController #1 and I go to Tab#2 with ViewController #2, how can I free all the memory ViewCont...

iPhone 3.5mm jack based application

I want to encode data via a DTMF encoder and send it back to the iPhone via the 3.5mm Jack. Is it possible to send data back into the 3.5mm jack. conventionally audio signals are sent out over the iPhone 3.5mm jack? Is there provision to deal with DTMF and 3.5mm jack based input applications in Iphone's External Accessory framework? ...

AdHoc and development distribution of iPhone applications

I have seen mentions of 2 different distribution models of iPhone apps - Ad Hoc and Development. Is my understanding correct that these two are the same just with different names? ...

Textview with an Imageview as background, inputted text is behind the keyboard

Hi, I have here a view with an image and the text view (with finite frame size) . I've already implemented the textview keyboard notification but the problem is that when inputting in the textview it still behind the keyboard (the text is not visible). It seems this problem occur when I have an Image view as background. Pls advise me...

iphone reset tableview

I'm having navigation controller with few views. I've table view in one of the views. I'm showing tick mark when user selects a cell in table view. Upto this point, its fine. When user goes back to previous view and comes back, i want to reset the table view. How? ...

Must I do anything special in order to show a modal view controller?

I have a UIViewController as root vc, attached to the window. Then I simply created another VC and want it to appear modally. When I add this directly to the rootViewController, it is visible. But when I call - (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated nothing happens. ...

Does overflow:hidden applied to <body> work on iPhone Safari?

Does overflow:hidden applied to work on iPhone Safari? it seems not. i cant create a wrapper on the whole website to achieve that... do you know the solution? Example: i have a long page, and simply i want to hide the content the goes underneath the "fold". and it shoudl work on iPhone/iPad THANKS ...

How do I animate a UIButton in a UITableView?

I currently have a UITableView with each cell containing four UIButtons. I am placing an image for each button with a downloaded picture from online. I'd like to have the button fade in when the image is finished downloading. I know I can animate in the viewDidLoad, but I assign the image in the cellForRowAtIndex function. How do I go ab...

Am I the only person in the world that CAN'T get a phone number to dial from a UIWebView?

This has been really driving me crazy. Web links work fine, but a phone number (I have tried a zillion combinations) do NOT work from my UIWebView. Any help MOST appreciated. Here's 3 more ways to do it. And none of them will dial a phone number. - (void)viewDidLoad { [super viewDidLoad]; CGRect webRect = CGRectMake(0.0f, 0.0f, 320.0f,...

SplitView controller Help?

Ok I need a bit of help on this. I'm doing an iPad app with a splitview controller. For the detail view I have a .XIB with three views created in the IB. Each view has its own toolbar with custom buttons. So this is the problem, when I rotate the app and add the popover using this: Code: - (void)splitViewController: (UISplitViewControll...

iphone: how do I obtain a list of all files with a given extension on the app's document folder?

I have saved all my files using something like this NSString *fileName = [NSString stringWithFormat:@"%@.plist", myName]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *appFile = [documentsDirectory stringByAppendingPath...

AVAudioPlayer working in Simulator, but not on device

My mp3 playing code is: NSError *error; soundObject = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:audioPathString] error:&error]; if (soundObject == nil) NSLog(@"%@", [error description]); soundObject.delegate = self; soundObject.numberOfLoops = 0; soundObject.volume = 1.0; NSLog(@"about to play"); [soundObject p...

Enable editing does not call didSelectRowAtIndexPath ??

Hi I have a UITableViewController where the user should be able to edit the items. In order to enable editing i use this : self.navigationItem.rightBarButtonItem = self.editButtonItem; And for everyone, how does not know where self.editButtonItem comes from, it is predefined by the SDK. So, now when I press on any item, this method...

Why does this UIImage disappear from UITableViewCell when rotating to landscape?

I'm trying to set up a UITableViewCell that can have an image in the upper right corner. I have it working for portrait mode, but when I rotate to landscape, the image disappears. Here's the code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifi...

iPhone SDK: How to get mic volume

I want to get the volume or even how much noise is coming through the mic. So someone is talking or some noise is going on in the background I want to know how much. Which framework would I use: Audio Toolbox, Audio Unit, AV Foundation, and Core Audio ...

how do i disable edit(adding or removing text on to it ) in text view

hi ,this is lak i am having problem with my text view,i selected text view to display content and this text should not changed by user.. but my text view is allowing me to edit text on toit how can i disable this one... ...

Structuring an iPhone app with several views

I am confused by the relationship between the appDelegate, MainWindow and the various views (and corresponding contollers). What I want to achieve is to immediately after app launch, hand control over to a "mainController" class that in turn loads the nib-files as needed (to minimize program logic in the app delegate). First, I need to l...