I'm using NSXMLParser to parse XML data from a remote server. I followed this tutorial to get up and running and everything is ok for any (NSString *) members I have in my objects that I'm creating. I also have integers that I need to set from the XML data, such as:
<root>
<child>
<name> Hello </name>
<number> 123 </...
I'm trying to make an XPath query with TouchXML, but if the query fail, the programm crash immmediately.
Is there any way to prevent this and continue the execution of the programme.
I know that TouchXML is based on libxml2 and that lib have an option called XML_PARSE_RECOVER but i don't know how to use it with TouchXML.
Source code
...
Hey guys,
I have a UIWebView in my app which I want to use to display an image which will link to another url.
I'm using
<img src="image.jpg" /> to load the image.
The problem is that the image doesn't load (ie. it can't be found) even though it's added as a resource in my project and is copied into the bundle.
I've tried using NSB...
I was just wondering if most games on the iPhone are done in OpenGL ES as opposed to using Quartz and Core Animation. Are Quartz and Core Animation mostly used for just creating slick interfaces? Or if there is a point with games where OpenGL probably has to be used over using other tools?
...
I got a iphone and i had a idea for a few apps that i wanted to produce
Does anyoen have any hits and tips
also i would love to see some hello world type apps that would help me getting started
...
can anyone please tell me what are the equivalent functions for glArrayElement()& glTexGeni() in openGL ES..
...
I have an iPhone (Xcode) Project that was working fine. Something must have been changed, because all of a sudden I am getting errors that pertain to NSLog, UIActionSheet, and several other items I have been using JUST FINE until now. What am I missing? Any assistance would be GREATLY appreciated!
Checking Dependencies
Ld /Users/markgo...
I need to store certain information while my application is executing and again fetch it at the time the application starts. I tried storing it in XML using GData but didn't succeed.
I used the NSFileHandle it doesn't give me an error but it fails to create a .txt file for read / write purpose. Is there any other way of storing and retri...
I am attempting to implement a custom view. This view should display an image surrounded by a gray, rounded rect border. I can get the image to display fine, as well as the border, however, since the border has rounded corners, I need a way to clear those corners such that they correctly display whatever is behind the view. How can I acc...
I have a UITableView that I populate with data that i download over the internet. While the data is being downloaded, I want to show a loading label above my TableView to signify to users that something is actually happening and there is not a problem with the app. What is the best way to do this??
...
I would like to save some user-specific data in my iPhone app. I was looking at the SQLite sample, and it is using something similar to this:
NSArray *paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask ,YES );
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDi...
Hi, I decided to use UIScrollView in my application since I have to scroll the elements appearing on the screen.
When I am checking out my scroll view in Interface Builder, it looks just perfect. But when I run my app, I am getting items from the scroll view obscuring items from the view. How can I make it work the way I need it? And wh...
I was creating a data structure manually using the following:
NSDictionary* league1 = [[NSDictionary alloc] initWithObjectsAndKeys: @"Barclays Premier League", @"name",
@"Premier League", @"shortname",
@"101", @"id", nil];
NSDictionary* league2 = [[NSDictionary alloc] initWithObjectsAndKeys: @"Coca-Cola Championship", @"...
Hi,
I am initializing a text view from my code, not from the interface builder and it appears to be just a white rectangle. I want it to have the same rounded shape as is in the interface builder. How can I achieve this?
The same question concerning UITextView.
Thanks.
...
As I understand, the bounds rectangle actually is always the same size as the frame rectangle, and has the origin (0, 0) relative to the frame rectangle coordinate system.
If for some reason the bounds rectangle appears to be smaller than the frame rectangle, the content will be clipped while the frame rectangle uses larger space than n...
Well although it's late in the dark night, I don't get it why there are two different rectangles: frame and bounds.
Like I understand it, one single rectangle would have been just enoug to do everything. Positioning the View itself relative to another coordinate system, and then clipping it's content to a specified size. What else woul...
I don't have any experience tweaking Xcode build scripts. I've created a static library. When the referencing app builds for debug simulator, I have to make sure the library also has a recent debug simulator build, rather than say device debug. Is there a way to build in the referencing project and have the static library automatical...
There's a similar question on here about this which I've read and I've tried to follow the advice given there... and I think I'm 95% complete but the remaining 5%... well you know ;-)
So I'm trying to call the twitPic API to upload an image and I've got the image contained in a UIImageView which I'm displaying on the screen (I can see i...
I need to store passwords in NSString objects; however, I would like some way to obfuscate them, so they cannot be read directly from memory.
This is a Mac OS X (10.5) application, but a solution that also works on iPhone would be much appreciated.
...
is there a way to make a fbConnection for iphone within an app environment on the iphone and post a Photo to your FB newsfeed after a secure login without leaving the iphone app environment?
...