iphone

Problem using NSXMLParser with NOAA data on iPhone

Can anyone help me see why NSXMLParser is not causing these methods parser:didStartElement:namespaceURI:qualifiedName:attributes: parser:didEndElement:namespaceURI:qualifiedName:attributes: to fire for the part of the following data: <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schema...

Purpose of "Simulated User Interface Elements" for Nav Controllers?

What's the purpose of having the Simulated User Interface elements, i.e. the top and bottom toolbars? Is this to allow you to design with the space accounted for but the actual toolbars would be provided by the Navigation Controller? ...

How does undo/redo basically work on iPhone OS?

My app doesn't use Core Data yet. Is it true that I must use Core Data for undo/redo? And: How does the user do the undo/redo? I've never seen it in action, and never ever used it. Don't know how I should do it if I wanted to. There's no undo/redo button anywhere. Yet they say it has undo/redo. So how does the user trigger this? ...

xmlCtxtGetLastError - Iphone

Hi, I have been programming with NSXMLParser for quite a while and lately, I came out with this error. The strangiest thing is that it only happens in debug mode. Once I load the App in Simulator and run it from Simulator (without Xcode involved), it runs fine. The code is very straight foward, it is a simple XML parsing whose contents...

Core data and saving the context in subViewControllers, ok to release?

When updating the managedObjectContext is it ok practice to do the save setup in view controllers that may be released or should the appDelegate handle the saving of the managedObjectContext so that even if the viewController is released the save finishes? I'm leaning towards the idea of moving the save step into my appDelegate and havi...

Best way to save data in iPod Touch/iPhone Objective-C

Hi all, I am writing a very simple application, for the iPhone. Unfortunately I am really a newbie. What I am trying to do is to save data at the end of a user experience. This data is really simple, only string or int, or some array. Later I want to be able to retrieve that data, therefore I also need an event ID (I suppose). Could y...

How to set iPhone tab bar icon in code?

I am using the same ViewController for several different views. When instantiating the ViewController for a specific view, is there an easy way to specify the tab bar icon via code? ...

How do I add NSDecimalNumbers?

OK this may be the dumb question of the day, but supposing I have a class with : NSDecimalNumber *numOne = [NSDecimalNumber numberWithFloat:1.0]; NSDecimalNumber *numTwo = [NSDecimalNumber numberWithFloat:2.0]; NSDecimalNumber *numThree = [NSDecimalNumber numberWithFloat:3.0]; Why can't I have a function that adds those numbers: ...

Does apple mind you using that striped table view background in your own views?

The ones they use with grouped table view. I'm using a table view that links to another view that has text on it. To make it look less 'plain' I wanted to add that striped background and then put something like a white 'text box' on that. Do they allow it to be used? ...

Cannot show scene with Cocos2D when using UITabBarController

Hi I'm new to Cocos2D but am having serious issues when trying to load a cocos scene in one of the UIViewControllers mixed with other normal UIKit UIViewControllers. My project uses a UITabBarController to manage four view controllers. Three are normal UIKit view controllers while one of them I want to use cocos2D for (to draw some spr...

.net webservice for iphone app

Hi, I 'm trying to build an app which communicates with a web service. So far i have basic iphone app --hello world web service .net (version 1.1) I want the web service to return a pdf file. I can send the pdf in bytes. Is this the best approach. I 'm concerned that with the increase in pdf size the performance will degrade. Any s...

UISwitch not tapped on right area

I placed UISwitch on main view. Now I try change state. But the state changed only when I touch on the left side of the UISwitch. and never on the right. For example in Settings App the airplane mode chanhed any of those ways. Can anybody help me? ...

Same project...multiple apps?

We have a an iPhone app project that we wish to deploy multiple times under different client names. The individual apps will be very similar but will have different resources (icon, images etc) and config settings stored in plists (server names, options etc). What is the preferred means to manage this in Xcode? Obviously we really don't ...

iphone SDK: How to add image subview to UITableViewController and still see cells?

I'm adding an image subview to an UITableViewController with a grouped table. Once I add the image subview I can see the table headers on top of the image, but the cells are being drawn behind the image. Is there something else I need to do to ensure that the table cells appear on top of the background image? Here is the code I'm using...

gameKit or bounjour ???

which one is better for implementing chat for the iPhone with users in the current area gameKit or bounjour ? ...

UIWebViews in UITableView do not render while the table is being scrolled

I have a UITableView with UIWebViews within the cells for the purpose of displaying rich text. The UITableViews load html strings locally. However, when the table is being scrolled, the UIWebViews do not load the html strings specified in "cellForRow..." until the UITableView stops scrolling. Is there any way to override this behaviour s...

Operation could not be completed. AVAudioRecorder iphone SDK

I am trying to record using the iphones microphone: This is my code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; // the path to write file NSString *appFile = [documentsDirectory stringByAppendingPathComponent:@"testing.mp3"]; ...

Frame of viewForHeaderInSection is always the same size

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { if(section != 0) { UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(10, 10, 100, 30)] autorelease]; view.backgroundColor = [UIColor redColor]; return view; } else { return tableView.tableHeaderView; } } This is my impleme...

How can I tell when something outside my UITableViewCell has been touched?

Similar to this question I have a custom subclass of UITableViewCell that has a UITextField. Its working fine except the keyboard for doesn't go away when the user touches a different table view cell or something outside the table. I'm trying to figure out the best place to find out when something outside the cell is touched, then I co...

Core Data: Detecting the type and casting it

I have set up a Core Data model that includes an entity, Item with a 1->M relationship with the abstract entity Place, so that an item has many places. There are several entities with the parent set to Place. I want to set up several UI elements depending on the descendent place types. I have a loop that looks something like this: for ...