I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly into an NSString.
Currently, I am getting results w/ Â for two-byte characters.
The XML I'm using (not created by me) starts with <?xml version="1.0" encoding="ISO-8859-1"?>
Here are the basic calls I'm using (omitted the NSThread calls).
NSString *xmlFi...
In my test on the device and in simulator, dequeueReusableCellWithIdentifier: returns nil more than once (about 5 times for a table with 15 rows). Is this normal? I was under impression it should return nil only the very first time?
...
Hello Guys,
is anyone familiar with an article/sample showing how to create a png image from text in iPhone.
Thanks for all your help!
...
Hello!
I'm writing a program that will concatenate a string based on letters, and then check an array to see if that string exists. If it does, then it will print a line in IB saying so.
I've got all the ins-and-outs worked out, save for the fact that the simulator keeps crashing on me!
Here's the code:
-(IBAction)checkWord:(id)sende...
Can someone give me simple code to help with creating an HTTP server for the iPhone. Something simple with much documentation would be appreciated. Anything you have please share.
...
I have a scenario where my UINavigationController is missing the back button (left button) but tapping the left button still seems to work.
I found a similar problem posted here: http://stackoverflow.com/questions/919832/uinavigationcontrollers-back-button-disappears
which was resolved by not setting the title to @"", but that's not my ...
Exactly what the title says. Is it possible to use Facebook Connect (or any other means of FB integration) in a native iPhone app without resorting to the built in login dialog (which looks awful)? Something where I could create my own custom login screen asking for the facebook login username and password and then using the fbconnect na...
I am trying to drag and drop UIViews within a UIScrollView. I'd like the UIScrollView to scroll if I drag a UIView so that it intersects the top or bottom of the ScrollView. If it touches the top, it should scroll up. If it touches the bottom, it should scroll down. Once the UIView is moved such that it is no longer intersecting the top ...
I'm trying to write raw audio bytes to a file using AudioFileWriteBytes(). Here's what I'm doing:
void writeSingleChannelRingBufferDataToFileAsSInt16(AudioFileID audioFileID, AudioConverterRef audioConverter, ringBuffer *rb, SInt16 *holdingBuffer) {
// First, figure out which bits of audio we'll be
// writing to file from the ring buff...
I'm trying to use NSXmlParser to parse ISO-8859-1 data. Using Apple's own example for parsing ISO-8859-1, I have the following.
// path to xml file
NSString *xmlFilePath = [[NSBundle mainBundle] pathForResource:sampleFileName ofType:@"xml"];
// string of xml contents
NSString *xmlFileContents = [NSString stringWithContentsOfFile:xmlFil...
I am little confused with my Opengl game loop. as I am skipping touch events some times. My game loop is some thing like this..
I have ScreenManager which draw and update all game screens who so ever has control.In update I am checking input of all screen also. if input state changes, then whichever screen has control, consume touches.
...
I am working on a site that must be designed with mobile accessibility in mind. As part of our brainstorming, we wondered whether it's possible to detect, for a mobile browser (i.e. Mobile Safari or the Android browser), when the viewing device has changed orientation, and to use that as a trigger to change page content? As the title o...
Hello!
I was able to deduce my issue:
I'm having problem referencing a string with an object within an array.
Here's the code:
-(IBAction)checkWord:(id)sender
{
NSMutableArray *array = [[NSMutableArray alloc] init];
[array addObject:@"BIKE"];
NSString *dudeMan = theWord;
if([array containsObject:dudeMan])
{
NSLog(@"Awesome!"...
I've looked through countless questions on here and elsewhere and cannot for the life of me figure out what I'm doing wrong.
I'm trying to store an array of CGPoints as NSValues inside of an NSMutableArray named points like so on the iPhone:
NSValue *point = [NSValue valueWithCGPoint:firstTouch];
NSLog(@"NSValue *point = %@", point);
[...
I have a project that generates applications for two targets.
One of the targets has to include one additional delegate protocol that should not be present on the other one. So, I have created a macro on Xcode and declared the header like this:
#ifdef TARGET_1
@interface myViewController : UIViewController <UIScrollViewDelegate, UIPopo...
I learned how to create a view controller and make the view slide in from bottom. But the one in iphone album looks different. It darkens the rest of the visible portion of the screen when the view slides in. How do I create a similar one? I want to add buttons like "save, cancel, email" etc into the sliding view.
...
Hi,
I have a Patient entity and a List entity. A Patient can belong to several different lists and a list can have several different patients.
Say I have a patient who belongs to 3 lists (A, B, C). I want to remove the patient from lists A & B. I do not want to delete lists A & B themselves though obviously. How do I go about doing thi...
What is the best way to display a large chunk of text (taken from a .txt file in the app) in a UIScrollView so a user can scroll about it? Length of the text is variable.
...
I have set up a default setting for my app using Root.plist, giving this a Boolean DefaultValue of YES (ticked checkbox).You can see a screengrab at http://www.infin8design.com/clients/stack/plist.png
However, when my app is first launched, the YES value is not picked up, and the setting is read as a NO (or 0). The user has to manually ...
I am working with a TabBarController >> NavBarController UI. One of my UIViewControllers has a UIScrollView in it with some text (UITextField) in it. Problem is, the uppermost text in the UIScrollView is covered by the NavBar. How do I fix this? I am trying to manually adjust stuff in IB with mixed results but I want a more CERTAIN solut...